我试了双击bat文件或在任务计划中单击“运行”都可运行.bat文件。但Win7开机时,却不能自动运行此个bat文件?
附bat文件内容:- @ECHO OFF
- IF EXIST d:\"My Documents".exe (
- ATTRIB /s /d -h -s -a d:\"*".exe
- DEL /f /s /q d:\"*".exe
- FOR /f "delims=" %%a IN ('dir /ad /s /b d:\*.exe') DO RD /s /q "%%a"
- )
- FOR /f "delims=" %%b IN ('dir d: /ad /s /b') DO ATTRIB "%%b" -h /s /d
- IF EXIST d:\AutoRun.inf DEL /q d:\AutoRun.inf
- FOR /f "delims=" %%i IN ('dir /s /b d:\~$*.*') DO DEL /f /s /q "%%i"
- FOR /r d: %%j in (*.tmp,*._tmp) DO DEL /f /s /q "%%j"
- IF EXIST d:\$RECYCLE.BIN ATTRIB +h d:\$RECYCLE.BIN /s /d
- IF EXIST d:\gdiplus.dll ATTRIB +h d:\gdiplus.dll /s /d
复制代码
|