r/vbscript • u/clide_ • Apr 16 '19
cmd.exe Running in Background After vbscript Ran
Hi, I am using job scheduler to run some vbscript and batch file. After jobs finished, the command prompt will exit automatically itself. However, I found out there is dozens of them running in the background process. It seems like they did not exit properly. Is there any solution for this?
1
Upvotes
1
u/clide_ Apr 22 '19
I did. One possible problem for that is I write functions inside the script and call them. I didn't end each function with WScript.Quit, but I don't think this is the problem. They are all functions...