

CODE: [Copy to clipboard][ Last edited by fastslz on 2006-7-11 at 20:01 ]@echo off
d:\123\abc.bat
rem abc.bat内容是d:\123\abc.exe
:wait_1
ping/n 5 127.1>nul
wmic process list status|find /i "abc.exe"
if errorlevel 1 goto wait_1
copy c:\456\777.txt d:\123\888.txt
d:\789\000.bat
rem 000.bat内容是d:\789\000.exe
:wait_2
ping/n 5 127.1>nul
wmic process list status|find /i "000.exe"
if errorlevel 1 goto wait_2
call d:\789\000.bat(可否在这里用 start命令调用这另外一个批处理文件?)
exit
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |