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

Win 10 修改預設應用程式安裝路徑三大法:設定介面、登錄表、右鍵「複製路徑」技巧

編輯:Win10 系統應用技巧

C 盤空間吃緊時,將新應用程式預設安裝至其他磁碟可緩解壓力。Win 10 設定介面提供圖形化修改,若選項變灰無法操作,可改用登錄表強制指定;另分享快速取得檔案完整路徑的兩招技巧。

方法一:設定介面修改(最直觀)

  1. Win+I 開啟「設定」→ 系統 → 儲存體 → 變更新內容儲存位置。
    變更儲存位置
  2. 將「新的應用程式將儲存到」下拉選單改為 D 槽或其他分割區。

方法二:登錄表強制修改(選項變灰時適用)

  1. Win+R 輸入 regedit。
  2. 定位至:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
  3. 雙擊 CommonFilesDir 與 CommonFilesDir (x86),將數值資料改為自訂路徑(如 D:\Program Files)。
    修改 CommonFilesDir

方法三:快速取得檔案完整路徑(兩招)

  • Shift + 右鍵 → 選擇 複製為路徑。
    Shift 右鍵複製路徑
  • 匯入登錄表 將「複製路徑」永久加入右鍵選單(免按 Shift),匯入以下 .reg 檔:
    右鍵選單複製路徑
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\windows.copyaspath]
"CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}"
"CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}"
"CommandStateSync"=""
"Description"="@shell32.dll,-30336"
"Icon"="imageres.dll,-5302"
"InvokeCommandOnSelection"=dword:00000001
"MUIVerb"="@shell32.dll,-30329"
"VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"
"VerbName"="copyaspath"

小結

優先用設定介面,失效改登錄表;善用「複製路徑」技巧加速故障排除與腳本撰寫。

Copyright © Windows教程網 All Rights Reserved