Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Prevent auto-closing of console after the execution of batch

Active Directory, Domain, DNS, WINS, DHCP, SBS, New Releases.

Prevent auto-closing of console after the execution of batch

Postby chicagotech » Thu Sep 28, 2017 11:26 am

Q: I try to create a batch file to run and can enter next excitable command. How do you prevent auto-closing of console after the execution of batch file?

A: You may want to use cmd.exe with ending cmd /k command.
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 6995
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA

Re: Prevent auto-closing of console after the execution of batch

Postby chicagotech » Thu Sep 28, 2017 11:27 am

Or Add cmd.exe as a new line below the code you want to execute
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 6995
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA


Return to Windows

Your Ad Here

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests