主機檔案劫持

主機檔案劫持

我想在我的主機檔案中新增一個條目,所以我打開了目錄並

主機網路協定服務

除了 Imhosts.sam 檔案之外的所有文件都混亂了。

雙擊後,所有 4 個檔案都會以某種方式啟動質量效應 2。

怎麼會發生這種情況,更重要的是我該如何解決它?贏10。

答案1

聽起來像是將沒有擴充檔的預設程式設定為 ME2。如果您覺得編輯登錄檔很舒服(這裡可能會造成損壞,因此請嚴格執行操作),您可以導覽至:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts,然後左鍵按一下「.」。在那裡。這將突出顯示它,現在您應該右鍵單擊它。點擊“匯出”選項並將該檔案儲存到桌面(如果您突出顯示的金鑰出現任何問題,這將為您提供備份點)。之後,按一下「+」加號以開啟資料夾並確保其中唯一的資料夾是:「OpenWithList」。執行此操作後,刪除除“預設”之外的所有條目。預設情況下唯一的應該是:(未設定值)。事實上,預設條目中是否有其他內容並不重要,所以如果有的話也不要擔心。

如果您在執行上述任何操作後遇到問題,請雙擊您在開始時匯出的文件,以撤銷對該金鑰可能造成的損壞。請注意,如果您執行了此處未列出的任何操作,那麼您匯出的檔案將無法恢復該損壞,並且您可能會遇到麻煩。

編輯:我應該要更具體一點,所以我為此道歉。在登錄編輯器視窗的右側也可能有一些條目,請確保也刪除它們。我已經為您發布了兩個資料夾的螢幕截圖。右側應該只有預設條目。 螢幕截圖.


編輯2:好的,看來我之前告訴你的話有點不對勁,所以我為此道歉。上面的方法修復了帶有“.”的檔案。檔案名稱末尾有句點,沒有副檔名。您需要重置檔案關聯,根本不需要句點。如果您查看:HKEY_CLASSES_ROOT\Unknown,您可能會看到您的遊戲列在其中的一個或多個條目中。左鍵單擊Unknown然後右鍵單擊它並將該密鑰條目匯出到安全的地方(在弄亂註冊表之前始終進行備份)。接下來開啟記事本或您選擇的純文字編輯器並將其貼到其中(此版本適用於 Windows 7):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Unknown]
"AlwaysShowExt"=""
"QueryClassStore"=""
"TypeOverlay"=""

[HKEY_CLASSES_ROOT\Unknown\DefaultIcon]
@=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,53,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,30,00,00,00

[HKEY_CLASSES_ROOT\Unknown\shell]
@="openas"

[HKEY_CLASSES_ROOT\Unknown\shell\openas]
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\openas\command]
@=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,72,00,75,00,\
  6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,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,4f,00,70,00,65,00,6e,00,41,00,\
  73,00,5f,00,52,00,75,00,6e,00,44,00,4c,00,4c,00,20,00,25,00,31,00,00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\opendlg]
"LegacyDisable"=""
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command]
@=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,72,00,75,00,\
  6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,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,4f,00,70,00,65,00,6e,00,41,00,\
  73,00,5f,00,52,00,75,00,6e,00,44,00,4c,00,4c,00,20,00,25,00,31,00,00,00

或者,如果您使用的是 Windows 10,請改用此:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Unknown]
"AlwaysShowExt"=""
"QueryClassStore"=""
"TypeOverlay"=""

[HKEY_CLASSES_ROOT\Unknown\DefaultIcon]
@=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,53,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,30,00,00,00

[HKEY_CLASSES_ROOT\Unknown\shell]
@="openas"

[HKEY_CLASSES_ROOT\Unknown\shell\InvokeDefaultVerbInOtherProcess]
"ProgrammaticAccessOnly"=""

[HKEY_CLASSES_ROOT\Unknown\shell\InvokeDefaultVerbInOtherProcess\command]
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\Open]
"MultiSelectModel"="Single"
"ProgrammaticAccessOnly"=""

[HKEY_CLASSES_ROOT\Unknown\shell\Open\command]
@=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,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
  00,31,00,22,00,00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\openas]
@=hex(2):40,00,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,35,\
  00,33,00,37,00,36,00,00,00
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\openas\command]
@=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,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
  00,31,00,22,00,00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\OpenWithSetDefaultOn]
"MultiSelectModel"="Single"
"ProgrammaticAccessOnly"=""

[HKEY_CLASSES_ROOT\Unknown\shell\OpenWithSetDefaultOn\command]
@=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,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,2d,00,6f,\
  00,76,00,65,00,72,00,72,00,69,00,64,00,65,00,20,00,22,00,25,00,31,00,22,00,\
  00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

接下來將其另存為:"UnknownReset.reg",請注意,需要引號,因為如果檔案名稱周圍沒有引號,記事本會自動新增 .txt 副檔名。接下來,雙擊新建立的文件,這應該可以解決您的問題。如果它以 .txt 副檔名儲存文件,則您必須刪除副檔名並重試,或在 Regedit 中手動匯入資料。若要手動匯入,您可以開啟Regedit,然後按一下File選單,然後按一下Import。從下拉清單中進行選擇All files,然後選擇將上述程式碼放入其中的檔案。

相關內容