原帖由 Batcher 于 2010-2-23 21:28 发表
哪里少了一个%呢?能否把最新的代码贴出来,并说说是哪一行出了问题?
在六楼,
- @echo off
- echo @echo off>"%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
- echo setlocal enabledelayedexpansion>>"%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
- echo for /f "tokens=1,2 delims==" %%i in (definfo.dat) do (>>"%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
- echo if /i "%%i"=="curdefs" set str=%%j>>"%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
- echo )>>"%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
- echo xcopy /e /y "%%~dp0%%str%%" "E:\NETT_Slof\Symantec Antivirus企业版9.0\VirusDefs\%%str%%">>"%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
- call "%CommonProgramFiles%\Symantec Shared\VirusDefs\back.cmd"
复制代码
|