- 逆向行駛 - https://520.be/ -

解除Win10的檔案名稱長度限制

IMG_2026_07_25~05_42_49~1152x768
最近用JavHelper [1]整理日本愛情動作片的時候 🤷‍♂️🤷‍♀️🤷‍♂️ 常常會碰到檔案名稱過長然後出錯的問題,拜了一下Google大神之後發現解決方法很簡單,整理好筆記分享這個好用的小知識出來 🤓🤖🤓

內容目錄

群組原則

步驟一、Win鍵+R鍵然後輸入『gpedit.msc』叫出本機群組原則編輯器,然後依次尋找

電腦設定 -> 系統管理範本 -> 系統 -> 檔案系統 -> 『啟用 Win32 長路徑』

選擇已啟用,然後按確定之後重開機即可。

解除Win10的檔案名稱長度限制 [6]
解除Win10的檔案名稱長度限制

🟦 🟦 🟦

下載批次檔

步驟二、使用批次檔之後重開機即可。

㊙️ 點此下載批次檔 [7]

@Echo Off
Title Reg Converter v1.2 & Color 1A
cd %systemroot%\system32
call :IsAdmin

REM ; created by Walter Glenn
REM ; for How-To Geek
REM ; article: http://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "1" /f
Exit

:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo You must have administrator rights to continue ...
Pause & Exit
)
Cls
goto:eof

🟩 🟩 🟩

登錄檔

Windows Registry Editor Version 5.00

; created by Walter Glenn
; for How-To Geek
; article: http://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001

🟨 🟨 🟨

引用來源

ref.

列印本文 [12] 👨‍👩‍👧‍👦 3 次瀏覽