把6楼代码中的
for /f "usebackq tokens=1* delims=/" %%a in (`dir /b "E:\gg"`) do c:\progra~1\winrar\winrar.exe a -ep1 -r0 -exit -- "E:\Output\%%a.rar" "E:\gg\%%a"
改成:
for /f "usebackq tokens= ...
keen 发表于 2009-12-24 22:19
把6楼代码中的
for /f "usebackq tokens=1* delims=/" %%a in (`dir /b "E:\gg"`) do c:\progra~1\winrar\winrar.exe a -ep1 -r0 -exit -- "E:\Output\%%a.rar" "E:\gg\%%a"
改成:
for /f "usebackq tokens=1* delims=/" %%a in (`dir /b "E:\gg"`) do c:\progra~1\winrar\winrar.exe a -ep1 -r0 -exit -- "E:\Output\%%~na.rar" "E:\gg\%%a"