Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 顯示已知副檔名設定:避免雙重副檔名詐騙與誤判檔案類型

編輯:Win7 系統應用技巧

前言

Windows 預設隱藏已知檔案類型副檔名,導致使用者無法分辨 photo.jpg.exe 等偽裝執行檔,極易中毒。開啟副檔名顯示是基本防護措施。

設定步驟

  1. 開啟「電腦」或任意資料夾 → 點擊「編排」/「工具」選單(無選單列請按 Alt)→「資料夾與搜尋選項」。
  2. 切換至「檢視」索引標籤。
  3. 在「進階設定」清單中找到 「隱藏已知檔案類型的副檔名」,取消勾選。
  4. 點擊「確定」生效,所有檔案即顯示完整副檔名。

圖文對照

電腦開啟編排選單

資料夾選項檢視分頁

取消勾選隱藏副檔名

顯示副檔名效果

為什麼要開啟?

  • 識別真實檔案類型: report.pdf.exe 顯示為 .exe 而非 .pdf,避免誤點執行惡意程式。
  • 方便手動更改副檔名: 修正錯誤關聯、轉換格式(如 .txt → .bat、.html → .php)。
  • 開發/除錯需求: 確認編譯輸出、腳本檔案副檔名正確。

補充建議

  • 同樣建議勾選「顯示隱藏的檔案、資料夾和磁碟機」,並取消勾選「隱藏受保護的作業系統檔案」(需確認警告),掌握完整檔案系統視圖。
  • 企業環境可透過群組原則強制啟用「顯示副檔名」:
    User Configuration → Administrative Templates → Windows Components → File Explorer → Turn off the display of file extensions for known file types = Disabled
Copyright © Windows教程網 All Rights Reserved