getting the “friendly” name for window startmenu items/shortcut files

前端 未结 1 1791
说谎
说谎 2021-01-24 04:58

This is curious, some startmenu items seems to resolve to a \"friendly\" name that\'s not contained in the actual .lnk file. For example:

\"c:\\ProgramData\\Microsoft\\

相关标签:
1条回答
  • 2021-01-24 05:53

    There's a hidden file in that folder named desktop.ini. This is the content on my machine:

    [.ShellClassInfo]
    LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21788
    [LocalizedFileNames]
    System Information.lnk=@%systemroot%\system32\msinfo32.exe,-100
    Resource Monitor.lnk=@%SystemRoot%\system32\wdc.dll,-10030
    dfrgui.lnk=@%systemroot%\system32\dfrgui.exe,-103
    Task Scheduler.lnk=@%SystemRoot%\system32\miguiresource.dll,-201
    System Restore.lnk=@%systemroot%\system32\rstrui.exe,-100
    Disk Cleanup.lnk=@%SystemRoot%\system32\shell32.dll,-22026
    Character Map.lnk=@%SystemRoot%\system32\shell32.dll,-22021
    Windows Easy Transfer.lnk=@%windir%\system32\migwiz\wet.dll,-588
    Windows Easy Transfer Reports.lnk=@%windir%\system32\migwiz\wet.dll,-591
    

    This is the relevant line:

    dfrgui.lnk=@%systemroot%\system32\dfrgui.exe,-103

    The -103 value indicates the string is read from string resource #103 in dfrgui.exe. In Visual Studio, I used File + Open + File, selecting c:\windows\system32\dfrgui.exe. Opened "String table" and double-clicked it:

    Shows string table content

    This may well be different on your machine, depending on where you live. What I showed is for the English version of Win7.

    0 讨论(0)
提交回复
热议问题