Board logo

标题: 怎样在CALL调用下一个BAT后,终止本身。 [打印本页]

作者: newice     时间: 2006-4-4 02:16    标题: 怎样在CALL调用下一个BAT后,终止本身。
@echo off LH KILLER LH DOSKEY LH CTMOUSE if "%bootcon%" == "A" goto _NDIS if "%bootcon%" == "B" goto _PXE if "%bootcon%" == "C" goto _other if "%bootcon%" == "D" goto _bak if "%bootcon%" == "E" goto _tools :_NDIS prompt $p$g call \net\doit.bat \net\netbind.com netbind goto _end :_PXE prompt $p$g \net\Undipd.com 0x60 goto _end :_other prompt $p$g goto _end :_bak prompt $p$g a: call bak.BAT (如:想在掉用这个BAT后,自身退出,让下面的不要执行) :_tools XMSDSK 16384 /Y FINDRAMD path=a:\;%ramdrive%;a:\NTFSDOS;a:\driver;a:\vc;a:\tools LH DOSLFN /C+ /Z:CP936UNI.TBL md %ramdrive%\Temp set tmp=%ramdrive%\temp set temp=%ramdrive%\temp LH SMARTDRV PCCACHE /SIZEXT:4096 /WRITE:OFF /WIN /MINI a: call tools.BAT :_end a: call menu.BAT

作者: Climbing     时间: 2006-4-4 08:26
把bak.bat前面的call去掉就可以了。

作者: zjnbwdj     时间: 2006-4-4 23:46
在call bak.bat下面加一行goto last,然后在此批处理末尾加一句:last就好了呀.

作者: Climbing     时间: 2006-4-4 23:50
Originally posted by zjnbwdj at 2006-4-4 23:46: 在call bak.bat下面加一行goto last,然后在此批处理末尾加一句:last就好了呀.
也是个办法,但就没有我的答案简洁了~~~