U 盤插入電腦,「我的電腦」中圖示變成普通黃色資料夾圖示,殺毒軟體掃描無毒卻無法恢復。主因:**病毒修改了根目錄 autorun.inf 並設定隱藏/系統屬性,導致 Explorer 讀取圖示資訊失敗**。一支 BAT 腳本批次移除隱藏/系統屬性即可恢復。
fix_usb_icon.bat)@echo off
@echo +------------------------------------------+
@echo 本程式移除病毒設定的隱藏/系統屬性,恢復 U 盤圖示
@echo +------------------------------------------+
@echo.
@echo 請耐心等待...
attrib -s -h -r *.* /S /D
attrib +s +h "System Volume Information"
attrib +s +h "Recycler"
attrib +s +h +a "ntldr"
@echo 完成!
pause
fix_usb_icon.bat(編碼 ANSI/UTF-8 均可)。.bat 檔複製到 **U 盤根目錄**。attrib -s -h -r *.* /S /D:遞迴移除**所有檔案/資料夾**的系統(S)、隱藏(H)、唯讀(R)屬性。System Volume Information、Recycler 及開機檔 ntldr 的保護屬性,避免系統異常。autorun.inf 設為 +s +h +r 並指向惡意圖示/執行檔,移除屬性後 Explorer 重新讀取預設磁碟機圖示。autorun.inf(md autorun.inf)佔位,阻止病毒建立同名檔案。