Comments on: 3 Ways To Prevent Command Prompt From Closing After Running Commands (Batch File Pause) https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/ Making Technology Accessible Wed, 31 Aug 2022 13:38:32 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: Travis https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-197271 Sun, 20 Sep 2020 11:28:41 +0000 https://www.itechtics.com/?p=25186#comment-197271 This was wildly helpful, thank you so much.

]]>
By: Gogu https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-97129 Wed, 02 Oct 2019 22:36:00 +0000 https://www.itechtics.com/?p=25186#comment-97129 Hello, can you please post the full version for that .reg file with the cmd.exe /k? The third way doesn’t work for me, and i really need that cmd to stay open after running basics programs with visual studio. Thanks in advace

]]>
By: Leonard https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-55929 Thu, 20 Jun 2019 09:47:26 +0000 https://www.itechtics.com/?p=25186#comment-55929 The third way for keeping a batch file window open assumes that you have Power Shell included in your Windows installation. Here is a possible solution for the standard Windows command interpreter:

Open regedit and go to each one of:

[HKEY_CLASSES_ROOT\batfile\shell\open\command]
[HKEY_CLASSES_ROOT\cmdfile\shell\open\command]

Now change the “Default key value” to cmd.exe /k “%1” %*. Now, every batch script window will stay open after its execution.

]]>
By: Usman Khurshid https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-23456 Fri, 13 Jul 2018 04:43:20 +0000 https://www.itechtics.com/?p=25186#comment-23456 In reply to Michal.

Hi Michal, you should look for the automatically executing command prompt entry in your startup items.

]]>
By: Michal https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-23273 Tue, 10 Jul 2018 14:06:56 +0000 https://www.itechtics.com/?p=25186#comment-23273 Hello,

I need to find a way to prevent my command prompt from closing but I can’t edit the batch file. It’s somewhere in my computer and automatically executes after every 5 minutes. It’s probably a virus and I’ve tried numerous programs and antiviruses to remove it but nothing works. The command prompt closes before I can read anything and preventing it from closing could help find the source. I’ve tried the third way but it doesn’t work for me. Are there any other ways how to prevent the prompt from closing?

Thank you

]]>
By: mandala suresh https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-21337 Thu, 14 Jun 2018 07:15:12 +0000 https://www.itechtics.com/?p=25186#comment-21337 thank you

]]>
By: Ron https://www.itechtics.com/3-ways-to-prevent-command-prompt-from-closing-after-running-commands/#comment-18818 Wed, 07 Mar 2018 20:45:41 +0000 https://www.itechtics.com/?p=25186#comment-18818 Fourth way:
Open a cmd window, type the file name, press enter.
The window will stay open until you close it.

]]>