

I've tried Ctrl-F2, and rebooting the computer, and I attempted to repair it via the option in the Control Panel, but that didn't work - rather weirdly since it complained that the original location on Drive E was not available. I haven't figured out how to make it reappear. Thank you.I was working along fine in VFP9 fine for years and now suddenly my COMMAND WINDOW has disappeared. If you want to know anything else related to this, comment below. These all are easy and quick ways to keep your window of the Command Prompt open so that you can easily configure and watch each command which you run through the batch file or Powershell Script. Now run any command, the Command Prompt window will stay open as long as you will keep it open. This registry will save to your Registry Editor of Windows. Windows Registry Editor Version ”C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\” –noExit \ “& \\\ “%1\\\ “C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\ “ –NoExit \ “-Command\” \”if ( ( Get-ExecutionPolicy ) –ne ‘AllSigned’) & \\\ ”%1” \\\ “\””Īfter saving the file, double click on it.

For this, type the following code in your Notepad and save the file with the.


You can prevent Command Prompt window from closing after running commands through adding a Registry Key in the Windows Registry. You can easily see each command which had run on the result of bat file in CMD as long as you do not press any key. This will keep the Command Prompt window open until you do not press any key. Now add “PAUSE” word at the end of your bat file. The second way I am going to show you is also a simple method.Įdit your bat file by right clicking on it and select “Edit” from the list. This is the very easy and handy way to prevent the Command Prompt window from closing after running commands.
