Close cmd window after executing script/batch

February 20, 2013 at 09:15:10
Specs: Windows XP
I am running a vbscript and a batch file ad not able to exit the cmd window after executing the script and the batch file.

See More: Close cmd window after executing script/batch

Report •

#1
February 20, 2013 at 10:09:29
The window should close when CMD exits, and it defaults to exiting at the end of a script. How are you running the batch file?

How To Ask Questions The Smart Way


Report •

#2
February 20, 2013 at 10:18:17
Initially there is a vb script that runs and there is another batch file that runs after it. I map network drive then fetch users login script. I run this through vb script.

Report •

#3
February 20, 2013 at 10:54:19
Oh, we're going to play that game, eh? Alright, how is the VBScript running the batch file?

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
February 20, 2013 at 16:18:12
You might want to post the script(s) you're using (both batch and vbscript and whatever else might be involved), that will help cut to the chase.

Report •

#5
February 21, 2013 at 07:09:51
I am having one .bat file which calls wscript url.vbs. After running the .vbs file, there opens one cmd window and after execution it does not close again.

Report •

#6
February 24, 2013 at 07:23:38
I didn't ask how you were running the script that ran the batch. I asked you how your script is running the batch.

How To Ask Questions The Smart Way


Report •

Ask Question