terminate called btm file

Jan 14, 2016
3
0
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
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,353
82
Albuquerque, NM
prospero.unm.edu
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.