初学.bat,贴在这儿让人笑话

有个病毒很可恨,Win32.Troj.Romdrivers.ka 这里有专杀工具

cls 
@echo 检查批处理包的完整性
@if exist c:\test1.bat @echo test1.bat exist
@if not exist c:\test1.bat @echo test1.bat is not exist
@if exist c:\test2.bat @echo test2.bat exist
@if not exist c:\test2.bat @echo test2.bat is not exist
@if exist c:\test3.bat @echo test3.bat exist
@if not exist c:\test3.bat @echo test3.bat is not exist
@if exist c:\test4.bat @echo test4.bat exist
@if not exist c:\test4.bat @echo test4.bat is not exist
@if exist c:\test5.bat @echo test5.bat exist
@if not exist c:\test5.bat @echo test5.bat is not exist
pause
@echo 调用test1.bat文件
@type c:\test1.bat |find "baidu" && @echo Congratulations you find the string
@call c:\test1.bat
@echo "--------------------------------------------------------------- "
@echo off
if exist c:\a.txt del a.txt
@echo on
@echo 'a.txt' file exist
@echo --------------------------------------------------------------- >> a.txt
ping www.baidu.com > a.txt 
@echo --------------------------------------------------------------- >> a.txt
ping www.google.com >> a.txt 
pause



 

你可能感兴趣的:(初学.bat,贴在这儿让人笑话)