[ Last edited by oozic on 2007-11-28 at 08:59 PM ]作者: scriptor 时间: 2007-11-28 23:47 winrar 可以不~~??作者: oozic 时间: 2007-11-29 09:41 可以只要能实现:P作者: abcd 时间: 2007-11-29 10:01 @echo off
for %%i in (*.txt) do (
set str=%%~ni
call "%programfiles%\winrar\winrar.exe" -o+ a "%%str:~0,-7%%%%str:~-6%%" *%%str:~-6%%.txt
)
pause作者: oozic 时间: 2007-11-29 10:49 谢谢abcd
原来dos的批处理这么强,很不错!速度很快
我导还想写程序来做这个呢。
winzip现在也可以用啦
@echo off
for %%i in (*.txt) do (
set str=%%~ni
call "wzzip" "D:\cisco\demo\Job\outgoing\%%str:~0,-7%%%%str:~-6%%.zip" D:\cisco\demo\Job\outgoing\*%%str:~-6%%.txt
)
exit