我們看到的文件夾名,不一定是文件夾的實際名
比如我們看到的圖片文件夾,實際文件夾名是Pictures
因爲desktop.ini的存在,我們看到的文件夾名是圖片
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21779
InfoTip=@%SystemRoot%\system32\shell32.dll,-12688
IconResource=%SystemRoot%\system32\imageres.dll,-113
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-236
那麼如何定義desktop.ini呢?我們以下載文件夾爲例,注意文本編碼是GB2312
[.ShellClassInfo]
IconIndex=0
IconFile=C:\Program Files (x86)\Thunder Network\Thunder\Program\downloadfolder.ico
InfoTip=下載文件夾
LocalizedResourceName=下載