.lnk 文件在 Windows 7 中建立為隱藏文件

.lnk 文件在 Windows 7 中建立為隱藏文件

我的 Windows 7 Professional 遇到問題,因為當我單擊桌面或資料夾上的“新建->快捷方式”時,沒有任何反應。我下載了以下 REG 檔:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.lnk]

[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"

[HKEY_CLASSES_ROOT\.lnk\ShellEx]

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellNew]
"Handler"="{ceefea1b-3e29-4ef1-b34c-fec79c4f70af}"
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,\
  31,00,36,00,37,00,36,00,39,00,00,00
"ItemName"="@shell32.dll,-30397"
"MenuText"="@shell32.dll,-30318"
"NullFile"=""

[HKEY_CLASSES_ROOT\.lnk\ShellNew\Config]
"DontRename"=""

[-HKEY_CLASSES_ROOT\lnkfile]

[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"FriendlyTypeName"="@shell32.dll,-4153"
"IsShortcut"=""
"NeverShowExt"=""

[HKEY_CLASSES_ROOT\lnkfile\CLSID]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex]

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\Compatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolderMenu]
@="{37ea3a21-7493-4208-a011-7f9ea79ce9f5}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
@=""

[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\InternetShortcut]
"IsShortcut"=""

[HKEY_CLASSES_ROOT\piffile]
"IsShortcut"=""

[HKEY_CLASSES_ROOT\WSHFile]
"IsShortcut"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
"29"=-

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.lnk]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.lnk]
"FileOperationPrompt"="prop:System.ItemTypeText;System.FileOwner;System.Author;System.Title;System.Subject;System.Comment;System.DateModified;System.Link.TargetParsingPath"
"FullDetails"="prop:System.PropGroup.Description;System.ItemTypeText"

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithProgids]
"lnkfile"=hex(0):

現在我可以建立新的快捷方式,但我建立的 lnk 檔案設定了隱藏屬性,而且圖示像任何隱藏檔案一樣褪色。我該怎麼做才能將它們創建為非隱藏?

答案1

您使用麥克菲網路安全嗎?

我的計算機也遇到了同樣的問題 - 我發現問題出在 McAfee 上。當開啟即時掃描時,任何新的捷徑都會獲得隱藏屬性,並且當使用Windows照片檢視器旋轉圖片時,圖片也會被隱藏。關閉 McAfee 中的即時掃描後,一切又正常了。

看看這個主題:

http://answers.microsoft.com/en-us/windows/forum/windows_7-files/when-ever-i-edit-a-files-properties-such-as-on-a/71774527-6c80-e011- 9b4b-68b599b31bf5?page=1&tm=1305828561470#footer

答案2

對於 IconPath,我有“%SystemRoot%\system32\shell32.dll,-16769”(無引號)。我沒有

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons] "29"=-

根本不。

[HKEY_CLASSES_ROOT\SystemFileAssociations.lnk] 給出:

FileOperationPrompt    REG_SZ    prop:System.ItemTypeText;System.FileOwner;System.Author;System.Title;System.Subject;System.Comment;System.DateModified;System.Link.TargetParsingPath    FullDetails    REG_SZ    prop:System.PropGroup.Description;System.ItemTypeText

老實說,我不知道這一半意味著什麼,也不知道為什麼其中任何一個會導致您遇到錯誤,但我希望這會有所幫助。

答案3

由於登錄機碼變更都沒有幫助,可能是不同的程式正在對 LNK 檔案執行某些操作。要驗證這一點,請下載過程監控器來自微軟。

啟動它並按 CTRL+L 打開過濾器並添加一個過濾器,如下所示:

過程監控過濾器

點選添加並關閉過濾器視窗。

從此時起,它將向您顯示此資料夾中發生的任何事件。切換到資源管理器並創建C:\測試資料夾中,您將看到 PM 將捕獲這些事件。

在 PM 中按 CTRL+X 清除整個列表,返回資源管理器,然後在內部右鍵單擊C:\測試建立一個新的快捷方式。

不要對創建的許多條目感到奇怪,這很正常。我想重要的訊息應該位於頂部,如下所示:

過程監控結果

正如您所看到的,該文件是在我的系統上建立的,沒有隱藏屬性。您的系統上發生的事情將會很有趣。

相關內容