- UID
- 47925
中尉
- 积分
- 9874
- 经验
-
- 点数
-
- 油豆
-
- 荣誉
-
- 在线时间
- 小时
- 注册时间
- 2009-4-19
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2010-2-24 22:39
|
显示全部楼层
来自:山东省
在高高人的耐心指导下,获得如下解决方案- @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"
复制代码 |
|