¦p: choice /c:dme defrag,mem,end
±NÅã¥Ü
defrag,mem,end[D,M,E]?
Sample¡G
Sample.batªº¤º®e¦p¤U:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag ¡]À³¥ý§PÂ_¼Æȳ̰ªªº¿ù»~½X¡^
if errorlevel 2 goto mem
if errotlevel 1 goto end
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
¦¹ÀɹB¦æ«á¡A±NÅã¥Ü defrag,mem,end[D,M,E]? ¥Î¤á¥i¿ï¾Üd m e ¡AµM«áif»y¥y±N§@¥X§PÂ_¡Adªí¥Ü°õ¦æ¼Ð¸¹¬°defragªºµ{¦¡¬q¡Amªí¥Ü°õ¦æ¼Ð¸¹¬°memªºµ{¦¡¬q¡Aeªí¥Ü°õ¦æ¼Ð¸¹¬°endªºµ{¦¡¬q¡A¨CÓµ{¦¡¬q³Ì«á³£¥Hgoto end±Nµ{¦¡¸õ¨ìend¼Ð¸¹³B¡AµM«áµ{¦¡±NÅã¥Ügood bye¡AÀɵ²§ô¡C
FOR /F ["options"] %variable IN (file-set) DO command
FOR /F ["options"] %variable IN ("string") DO command
FOR /F ["options"] %variable IN (command) DO command
FOR /F ["options"] %variable IN (file-set) DO command
FOR /F ["options"] %variable IN ("string") DO command
FOR /F ["options"] %variable IN (command) DO command
--------------- cut here then save as a batchfile(I call it main.bat ) --------------------
@echo off
@if "%1"=="" goto usage
@for /f "tokens=1,2,3 delims= " %%i in (victim.txt) do start call IPChack.bat %%i %%j %%k
@goto end
:usage
@echo run this batch in dos modle.or just double-click it.
:end
--------------- cut here then save as a batchfile(I call it main.bat ) --------------------