- @echo off
- echo ------------U盘杀毒------------
- @echo.
- @echo.
- pause
- @echo.
- @echo.
- echo 正在清除病毒
- taskkill /F /IM winservice.exe
- @echo.
- @echo.
- echo 请稍等5秒钟
- pause
- rd /S /Q C:\\WINDOWS\\winsystem
- @echo.
- @echo.
- rem 删除病毒文件
- echo 正在恢复文件夹
- @echo.
- @echo.
- rem 取消属性
- dir /a:ds /b >dir.txt
- for /f "tokens=* delims= " %%i in (dir.txt) do call :ss "%%i"
- del dir.txt
- attrib -s -h -r open*.exe
- del open*.exe
- del "*.lnk"
- attrib +s +h "System Volume Information"
- attrib +s +h "&"
- @echo.
- @echo.
- @echo.
- @echo.
- echo 清除成功。。。
- pause
- goto :eof
- :ss
- set var=%1
- echo 正在修复文件夹 %var% ...
- attrib -s -h -r %var%
- goto :eof
- #该片段来自于http://www.codesnippet.cn/detail/2412201514283.html
来源: http://www.codesnippet.cn/detail/2412201514283.html