
[已解決]cmd做了reg右鍵改后綴名如何兼容含空格的文件名最后由 lforl 于 -12-7 19:17做了一個寫入reg運行的右鍵菜單。目標:右擊zip自動改后綴名。問題:目前只對不含空格的文件有效,對于含空格的文件不生效。疑惑的是,我明明加上引號了,還是沒法對有空格的文件名改后綴名成功。請教大佬,如何使它能兼容含空格的文件名?
nclick="copycode($('code0'));">復制代碼
- Windows Registry Editor Version 5.00
- ;************************添加文件夾右鍵zip→7z功能*************************
- [HKEY_CLASSES_ROOT.zip]
- @=CompressedFolder
- [HKEY_CLASSES_ROOT.zipCompressedFolder]
- [HKEY_CLASSES_ROOT.zipCompressedFolderShellNew]
- Data=hex:50,4b,03,04
- [HKEY_CLASSES_ROOT.zipShellNew]
- Data=hex:50,4b,03,04
- [HKEY_CLASSES_ROOTSystemFileAssociations.zipShell]
- [HKEY_CLASSES_ROOTSystemFileAssociations.zipShellChangeTo7z]
- @=改后綴名zip→7z(&Z)
- [HKEY_CLASSES_ROOTSystemFileAssociations.zipShellChangeToUVZCommand]
- @=cmd /c for %%I in (%1) do ren %%I %%~nI.7z& exit

