cmd line run and background run difference
Posted: 20 Aug 2020 07:50
Hi all,
I had an experimental run between cmd line and background run. The cmd line run successfully. However, I found that the background run stopped at certain point not completed.
I tried using start /wait cmd /c call, and meanwhile put exit at the end of that batch file in this case, remoteDownloadGenerator.bat. During execution, this file opened another two cmd line windows. I attached this batch file here. You can see at the end of this file is GOTO:EOF
So my questions is that if I put exit after GOTO:EOF, it will not work, right?
here is the end of this remoteDownloadGenerator.bat
What else I can do so that I can run this script to the end in background run...
tried change the last GOTO:EOF to GOTO end as below
the above change works in cmd line run but still not working in background run
Thanks
I had an experimental run between cmd line and background run. The cmd line run successfully. However, I found that the background run stopped at certain point not completed.
I tried using start /wait cmd /c call, and meanwhile put exit at the end of that batch file in this case, remoteDownloadGenerator.bat. During execution, this file opened another two cmd line windows. I attached this batch file here. You can see at the end of this file is GOTO:EOF
Code: Select all
start /wait cmd /c call "%Base_Scripts%\Scripts\remoteDownloadGenerator\remoteDownloadGenerator.bat" "%RDG_PACKAGE_SOURCE%" ""
here is the end of this remoteDownloadGenerator.bat
Code: Select all
GOTO:EOF
exit
tried change the last GOTO:EOF to GOTO end as below
Code: Select all
.............
GOTO:EOF
...............
GOTO:EOF
...............
GOTO end
:end
exit
Thanks