Reputation: 154
I am trying to write a batch script which, once complete, would allow the user to continue using the Windows command prompt as they normally would had no script been run. Is this possible? Thank you in advance for any help.
Upvotes: 1
Views: 3947
Reputation: 10799
If you manually open CMD (the Command Prompt) and invoke the batch file by name, CMD will remain open for additional commands after the batch file completes. You cannot do this by double-clicking on the batch file, but if you create a shortcut to the batch file that runs CMD.EXE with the /K
switch, you will run the batch file and then leave CMD running for additional commands. See CMD
at SS64.
Upvotes: 3