作者:wangff
地址:http://www.cn-dos.net/forum/viewthread.php?tid=44980- @echo off
- call inc 2>nul
- if %errorlevel%==1 (
- >inc.src echo ecs:100 B8 00 01 CD 16 B8 00 00 74 02 CD 16 B4 4C CD 21
- >>inc.src echo rcx
- >>inc.src echo 10
- >>inc.src echo w
- >>inc.src echo q
- debug inc.com<inc.src>nul 2>nul
- del inc.src
- )
- chcp 437|graftabl 936>nul
- :loop
- inc
- if not %errorlevel%==0 (
- echo %errorlevel%
- if %errorlevel%==81 goto :eof ::q or Q exit
- if %errorlevel%==113 goto :eof
- )
- ping -n 2 127.1>nul
- goto loop
复制代码 =================================
不用 com 改成脚本如:c.txt- a
- MOV AX,0100
- INT 16
- MOV AX,0000
- JZ 010C
- INT 16
- MOV AH,4C
- INT 21
-
- g
- q
复制代码 p代码:- @echo off
- chcp 437|graftabl 936>nul
- :loop
- debug<c.txt>nul
- echo %errorlevel%
- if not %errorlevel%==0 (
- if %errorlevel%==81 goto :eof ::q or Q exit
- if %errorlevel%==113 goto :eof
- )
- ping -n 2 127.1>nul
- goto loop
复制代码
[ 本帖最后由 wxcute 于 2008-12-11 14:55 编辑 ] |