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