/build/static/layout/Breadcrumb_cap_w.png

Exiting a CMD Window

I am trying to run WSUS Offline in an unattended fashion.

When I run a start/wait doupdate.cmd it opens a new command window and performs tasks and then exits to the new window. If this new window never closes, the start /wait never finishes and the original batch file can never finish.

Anyone know how I would get this new CMD window to close?

0 Comments   [ + ] Show comments

Answers (3)

Posted by: guy.forum 13 years ago
Orange Belt
0
I would suggest from the main CMD call the second cmd as cmd /c <path of the second cmd>. & Add try to use Exit command in both the CMD.
For more help you can check cmd.exe /? in the Command prompt.
I hope it will help to solve your problem. cmd
Posted by: anonymous_9363 13 years ago
Red Belt
0
I'd abandon the Stone Age mentatility of batch-building and build a script in a more capable and robust language. That script would test for the existence of a process or processes within a timed loop and take appropriate action when time 'x' has elpased.
Posted by: dyehardfan 13 years ago
Second Degree Blue Belt
0
Believe me, I am trying to. However, I am a staff of 1 managing over 750+ computers and my free time to learn scripting is scarce.

It was a bonehead mistake in that I was using start /wait with a .cmd instead of calling it which kept it in the same windows alleviating the problem.

Hey Scab, if you'd be interested in helping me abandon the Stone Age please take a look at the question I am about to post on printer installation/vbscript in general.

Thanks,

-DHF

ORIGINAL: VBScab

I'd abandon the Stone Age mentatility of batch-building and build a script in a more capable and robust language. That script would test for the existence of a process or processes within a timed loop and take appropriate action when time 'x' has elpased.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ