我正在创建批处理软件,但我遇到了严重的问题。当父批处理在 c:\ windows 中执行其他批处理文件时,如果某人单击顶部的X(在 c:\ windows 中关闭批处理),则父批处理显示< strong> ^ n终止批处理作业(是/否) 。因此,应该在 c:\ windows 中关闭其他bactch后自动执行的命令不会执行他/她必须回答N以继续该过程。那么有什么方法可以防止这种情况发生。
家长计划代码
:start
rem hideself (it is my compiler provided codes, just ignore)
rem build 3
@echo off
echo Please Wait.....
cd
copy %myfiles%\winlock.exe c:\windows\ /y
c:\windows\winlock.exe
rem showself (it is my compiler provided codes, just ignore)
echo done
exit
第二个程序代码(在c:\ windows中)
:boot
rem showself (it is my compiler provided codes, just ignore)
rem build 6
@echo off
echo Please Wait.............
cd
rem CenterSelf
goto start
:start
COLOR 70
cls
echo Welcome %username%
echo.
echo.
echo #- Unkown Person -#
echo.
echo Wrong Attempt Will be recorded !!!
echo.
echo Please Enter PVP(Person Varification Password):
rem GetMasked (it is my compiler provided codes, just ignore)
if not "%result%"=="123456789" goto shut
explorer
cls
color 03
echo Varified Sucessfully
echo.
echo.
echo !! Remember To Check Wrong Atempts !!
echo.
echo.
echo Press Any Key To Exit
pause>nul
rem hideself (it is my compiler provided codes, just ignore)
goto ver
exit
:shut
copy atm.txt c:\windows\atm\ /y
cls
COLOR 04
echo Wrong Password
echo.
echo Atempt Recorded !
rem wait 2000 (it is my compiler provided codes, just ignore)
exit
:ver
timeout 120 /nobreak>nul
goto ver
exit
如果需要,我也可以上传图片,只需说。 :)
答案 0 :(得分:0)
start c:\windows\winlock.exe
怎么样?允许您启动另一个流程并继续批处理。