WebMay 24, 2016 · keep cmd after execution of a .exe file open Ask Question Asked 6 years, 10 months ago Modified 6 years, 10 months ago Viewed 2k times 1 I am trying to run the .exe of a programm I donwloaded. But to see why it isn`t working I want to keep the cmd open to see the output it generates. Is that somehow possible? cmd exe Share Improve … WebSep 27, 2024 · We open a new instance of the command-line tool, thus can use its parameters. The parameter /k k eeps the cmd-window open (use /c to c lose). After the cmd-parameter we add the script to be executed. But there is one problem: if you close the cmd-window, VBA throws an overflow error.
Keep your Windows sessions alive and ready with this ... - TechRepublic
WebMay 11, 2024 · Depending on how you are running the command, you can put /k after cmd to keep the window open. cmd /k my_script.bat Simply … WebJun 12, 2009 · If you want cmd.exe to not close, and able to continue to type, use cmd /k. Just felt the need to clarify what /k does (from windows website): /k: Carries out the command specified by string and continues.. So cmd /k without follow up command at the end of bat file will just keep cmd.exe window open for further use.. On the other hand … paintballing harlow
How to keep subprocess.Popen console open after crashing on Windows?
WebMar 8, 2024 · The option /c means execute the command line after this option and then close. There can be opened a command prompt window and run the batch file from within the command prompt window. In this case cmd.exe is implicit started like on using option /k to keep cmd.exe running after each execution of a command, executable or batch file. – WebIf you run the cmd interpreter with a /k argument and pass in the batch file name as the next argument, you should get what you're after. The /k argument tells Windows to leave the cmd interpreter open when it's done with whatever you tell it to do as the next argument. WebNov 11, 2015 · @eryksun: how is it more complicated to wait? You wait for the cmd process using p.wait().On success it exits itself. On failure, OP don't want to terminate it programmatically as I understand ("I'd really really like to keep it open instead").Anyway it shouldn't be more complex to terminate than any process that may spawn other … subsea well testing