Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

terminate called btm file

I have a btm file where I do an update of my agenda file, after which I call a btm file to start the program
Like this
echo off
pause voor bijwerken agenda controleer Thuisnetwerk actief?

dir e:\Agenda-synchro\
pause
Iff exist e:\Agenda-synchro\agendavlag-PCBeneden-W7 Then
echo Agenda bijwerken!

msgbox yesno "Agenda" Agenda bijwerken ?
set antwoord=%_?
echo %antwoord
iff %antwoord == 10 then
copy "e:\Agenda-synchro\calendar.cs0" "c:\Users\peter\AppData\Local\Duality Software\Calendarscope"
del "e:\Agenda-synchro\agendavlag-PCBeneden-W7"
goto 10
else
iff %antwoord == 11 then
echo Nee

goto 10
else
endiff
endiff
Endiff

:10
pause start agenda
call startagenda.btm
exit
---------------------
and in startagenda.btm I specified

"c:\Program Files (x86)\Calendarscope\csde.exe"
Now I expected that the first btm file should terminate, however it stays active, and I have to terminate it by hand.

What should I do to terminate itself automatically

Peter
 
If you want to stop all batch processing, use the CANCEL command. If you never want to return to the outer batch file from the inner one, just remove the CALL command.
 
Back
Top