标题: EXIST 命令怎么详细的使用
[打印本页]
作者: netweather
时间: 2007-9-27 08:38
标题: EXIST 命令怎么详细的使用
一
if exist z: (start d:\1.exe) else (copy C:\2.BAT "C:\Documents and Settings\Administrator\「开始」菜单\程序\启动")
有Z盘就运行根目录下的所有软件,有(ezboot.exe,boot.exe,ddos.exe.deepin.exe,......)如果没有就运行(1.exe,23.exe,53.exe......)
二
还有使用EXIT命令监测C盘到z盘
如果有D盘就运行
d:
cd\
del /f /s /q /a sxs.exe
del /f /q /a autorun.inf
del /f /s /q /a _desktop.ini
del /f /s /q /a pagefile.pif
如果有E盘就运行
e:
cd\
del /f /s /q /a sxs.exe
del /f /q /a autorun.inf
del /f /s /q /a _desktop.ini
del /f /s /q /a pagefile.pif
有时候使用DEL删除文件的时候会出现,是否删除文件提示,怎么不出现