Trending March 2024 # Command Prompt Opens And Closes Immediately; Keeps Crashing # Suggested April 2024 # Top 5 Popular

You are reading the article Command Prompt Opens And Closes Immediately; Keeps Crashing updated in March 2024 on the website We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested April 2024 Command Prompt Opens And Closes Immediately; Keeps Crashing

Several users have reported that Command Prompt keeps crashing on Windows systems. As users open the Command Prompt window, it opens and closes immediately. This issue could be caused due to damaged or missing system files. Apart from that, a third-party program conflict. a corrupted user profile and malware infection can also be the reasons for this issue.

Command Prompt opens and closes immediately

If Command Prompt crashes or closes instantly after opening it on your Windows PC, you can use the following solutions to fix the issue:

Restart your computer.

Scan and remove malware from your PC.

Perform an SFC scan to repair corrupted system files.

Configure Environment Variable.

Create a new user account.

Uninstall a conflicting program.

Reset Windows.

Command Prompt keeps crashing in Windows 11/10 1] Restart your computer 2] Scan and remove malware from your PC

If your computer is infected with viruses or malware, you will likely experience this issue. Hence, you must run a virus scan on your computer and eliminate/quarantine any potential threat to your system.

If you have a 3rd-party antivirus software installed, use it to scan your PC at boot time or in Safe Mode.

Read: Can’t run Command Prompt as administrator

3] Perform an SFC scan to repair corrupted system files

This issue might be triggered due to corrupted or missing system files. Hence, if the scenario is applicable, you can run Windows inbuilt tool called System File Checker (SFC) to fix damaged system files. SFC scan is usually run through Command Prompt. However, you can also use Windows PowerShell to perform an SFC scan. Here are the steps you can use:

First, open Windows PowerShell as an administrator; search for PowerShell, hover the mouse over the PowerShell app, and then choose Run as administrator.

Now, execute the below command in the PowerShell window and let the scan run:

SFC /scannow

Once the scan is complete, you can reboot your computer and then use Command Prompt.

If this does not help, you may need to repair a potentially corrupted system image using the DISM Tool.

4] Configure Environment Variable

A missing variable could be a reason for Command Prompt crashes. So, if the scenario applies, you can configure the environment variable accordingly to fix the issue. Here are the steps to do that:

First, open Run using Win+R and then enter chúng tôi to open the System Properties window.

Then, enter the C:WindowsSysWow64 path and then press Enter.

Finally, press the OK button to save changes and then reboot your computer.

Remember to creat a system restore point before you do this.

5] Create a new user account

You might be dealing with this issue because of a corrupted user profile. Hence, in that case, make a new user account and then see if the issue is fixed. Here’s how you can do that:

Firstly, launch the Settings app using Win+I and then navigate to the Accounts tab.

Next, type the email address for your new account on the next prompt.

When done, sign out and then login back with your new account.

Finally, open Command Prompt and then check if the issue is resolved.

6] Uninstall a conflicting program

If there is a third-party software conflict that is causing Command Prompt to crash, you can uninstall the program to fix the issue. In case you have started experiencing this issue after installing a specific program, remove it and then check if the problem is fixed.

You can also perform a clean boot and see if the problem is resolved. Here’s how you can do that:

First, open Run using Win+R and enter msconfig in it to open the System Configuration window.

After that, move to the Services tab, checkmark the checkbox called Hide all Microsoft services, and press the Disable all button to turn off third-party services.

On the next startup, open Command Prompt and check if the problem is fixed.

If yes, you can start enabling services one by one and analyze which one is causing the problem.

Once you have analyzed the culprit, uninstall the program to fix the issue permanently.

If this method doesn’t help, we have one more fix that you can use.

Read: Command Prompt keeps popping up on Startup

7] Reset Windows

The last thing you can do is reset your Windows. There might be some system corruption that is causing the issue. In that case, you can reset your Windows to its original state. It will clear all the modifications done to the system. However, you can keep your personal files and data before resetting your PC. Here are the steps to do that:

First, open the Settings app using Win+I and go to the System tab.

Next, press the Reset PC button.

In the prompted dialog, you can either choose the Keep my files option or Remove everything and then tap on OK.

After that, follow the prompted instructions and reinstall Windows.

Once done, restart your PC and see if Command Prompt is working without any issues.

Read: Command Prompt closes immediately after opening batch file

What to do if CMD is not working?

If Command Prompt is not working or opening at all on your computer, you can open Command Prompt using your File Explorer or Task Manager. If that doesn’t help, you can run an SFC scan through PowerShell to fix the corrupted system files that might be causing this issue. Besides that, you can open Command Prompt in Safe Mode, perform a system restore to go back to a previous healthy state, or use a new user account to open CMD.

Now read: Registry Editor not opening, crashing or stopped working .

You're reading Command Prompt Opens And Closes Immediately; Keeps Crashing

How To Disable Command Prompt In Windows

To disable the Windows Command Prompt, you can either use the regular Windows Registry Editor or the Group Policy Editor. If you have access to the Group Policy Editor, then use it to achieve the task as it will be easy to manage it later. Here I am listing both the processes. Use the one you prefer.

Using Group Policy Editor

To disable the command prompt using the Group Policy editor, press Win + R, type gpedit.msc and press the Enter button. This action will open the Windows Group Policy Editor.

Once you are done with the configurations, the change is immediate. In fact, open up the command prompt and you will see a message something like “The command prompt has been disabled by your administrator.” Since the change is universal, even the administrator is locked out of the command prompt. Pressing any key after the message will just exit the command prompt window by default.

If you ever want to re-enable the command prompt, just reverse the process by selecting either of the radio buttons “Not configured” or “Disabled” and you are good to go.

Using Registry Editor

Note: before playing with the Windows Registry Editor, please back it up as a precaution.

If you don’t have access to the Group Policy Editor, then you can achieve the same using Windows Registry Editor. First, press Win + R, type regedit and press the Enter button to open Windows Registry Editor.

Once opened, navigate to the following keys. If you cannot find the keys “Windows” or “System” then create them. As you can see from the image, the default value for “DisableCMD” has been set to “0,” which simply means that the command prompt is enabled for all users.

That’s all there is to do. You have successfully disabled the command prompt and script execution in Windows with just a simple registry hack. If you ever want to roll back the changes, just change the Value Data back to “0” and you are good to go.

Vamsi Krishna

Vamsi is a tech and WordPress geek who enjoys writing how-to guides and messing with his computer and software in general. When not writing for MTE, he writes for he shares tips, tricks, and lifehacks on his own blog Stugon.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

Psychonauts 2 Keeps Crashing Or Freezing On Windows Pc

Psychonauts 2 is a new game, and in its short life, it’s already started crashing on some computers. Well, most of the time, it’s not your game, it’s your computer that’s the problem. In this article, we are going to see what you need to do if Psychonauts 2 keeps crashing on your computer.

Why does Psychonauts 2 keep crashing on your computer?

Psychonauts 2 was released in 2023, so, it is pretty obvious that the game is developed taking the latest systems in mind. It’s not like, the game will not work on older systems, it will as long as it matches the system requirement. What you need to do is, first of all, check your system requirements and see if that works.

If your computer doesn’t meet system requirements, then Psychonauts 2 may keep crashing. The second most common reason why a game crashes is that its files are corrupted. There are various reasons that can corrupt the system files. However, the bright side is, they can be resolved using the Steam launcher. Some other reasons include outdated Graphics drivers, the absence of DirectX or its required version, etc. We are going to talk about all this in detail and see what you need to do to resolve each reason. So, let us quickly go to the troubleshooting guide.

Psychonauts 2 keeps crashing or freezing on Windows PC

If Psychonauts 2 keeps freezing or crashing on your Windows 11/10 computer, then check out the following solutions to resolve the issue.

Switch to DirectX11

Update the Graphics Drivers

Verify the Integrity of Game Files

Allow the game through the firewall

Let us talk about them in detail.

1] Switch to DirectX11

As you see in the system requirements, Psychonauts 2 requires DirectX version 11. However, in theory, it should work with newer versions as well, but the problem is, it’s not. The game is not crashing on a lot of systems because of this very issue. What we are going to do is switch to DirectX11 and see if that works. Follow the given steps to do the same.

Open Steam.


In the General tab, type -dx11 in the field of LAUNCH OPTIONS.

Once you have set the Launch Option, restart the game and see if that works.

2] Update the Graphics Drivers

Another reason that can trigger the issue is incompatibility related to your drivers. If they are outdated, your game will crash. What you need to do is update the Graphics Drivers and see if that works. Following are some of the ways to update the drivers.

Hopefully, this will do the trick for you.

3] Verify the integrity of game files

Steam Launcher has an option to verify the game files. It will scan and repair the files if they got corrupted. You just need to follow the prescribed steps to do the same.

Open Steam.

Wait for the process to complete and see if that works.

4] Allow the game through the firewall

Next up, we need to make sure that your game is not blocked by the firewall or antivirus. You can whitelist the game in your third-party antivirus or just allow the game through the firewall and see if that works.

Hopefully, this will do the job for you.

Read: Fix Rainbow Six Extraction keeps crashing on Windows PC

Psychonauts 2 System Requirements

If you want to play Psychonauts 2, your computer should match the following configurations.


OS: Windows 7 (64 bit)

Processor: Intel Core i3-3225 or AMD Phenom II X6 1100T


Graphics: Nvidia GeForce GTX 1050 or AMD Radeon RX 560

DirectX: Version 11

Storage: 30 GB available space

Video Memory: 2 GB


OS: Windows 10 (64 bit) or later

Processor: Intel Core i7-7700K or Ryzen 5 1600


Graphics: Nvidia GeForce GTX 1060 or AMD Radeon RX 580

DirectX: Version 12

Storage: 30 GB available space

Video Memory: 6 GB

Read: How to find out Computer RAM, Graphics Card/Video memory of my PC?

How do I make Psychonauts 2 run better?

To have smooth gameplay of Psychonauts 2, make sure to do the following things.

Match the Recommended system requirements.

Keep your GPU Drivers updated.

Close all the other programs before playing the game.

Play the game in Fullscreen mode, and not in Windowed.

Do not play the game in Ultra-Wide mode.

Enable Vertical Sync.

The aforementioned things are what you need to do to make Psychonauts 2 run better on your computer. Also, it would be better for you to optimize the system for game performance.

Read Next: Tips to improve gaming performance in Windows.

Instagram Keeps Crashing On Iphone? 13 Ways To Fix!

Just recently, a bug caused Instagram’s iOS app to crash immediately upon opening, causing frustration among users. While you can access the platform through a web browser, many may not enjoy the different interface the mobile app offers.

Fortunately, there are several ways you can try and fix your Instagram app crashing on your iPhone. In this article, I’ll go through 13 potential ways! So, let’s get started.

1. Check your internet connection

Before attempting to troubleshoot any issues, make sure you have a strong connection. When you’re on a weak Wi-Fi connection or relying solely on your mobile data, Instagram may not be able to load and work properly.

2. Turn Airplane mode on/off

Sometimes, simply turning Airplane mode on for a few seconds before disabling it can help fix all sorts of issues. Doing this will disconnect you from any network connections and could potentially fix the problem.

3. Force quit and restart Instagram

Any app can crash due to temporary glitches or if you’ve left it running in the background for a long time. Force quitting and restarting the app could help get rid of these errors and make sure everything is running smoothly.

To force quit the Instagram app:

Once you’re done, restart the app and see if it works.

Additionally, closing other running apps in the background can improve the iPhone’s overall performance, especially if you’re experiencing some lags and crashes.

4. Check Instagram’s server status

If the Instagram app isn’t working properly, then it could be due to server issues or because the app is undergoing maintenance. To check if this is the case, you can visit Down Detector and see if any outages have been reported.

If confirmed, there’s nothing else you can do but wait until their developers fix their server issue.

5. Check and manage your iPhone’s storage

If your Instagram keeps crashing, especially after taking many photos or downloading heavy files, this could be due to your iPhone’s limited storage.

In case you need more help to add more room, try these different ways to free up space on your iPhone or iPad.

6. Restart your device

Rebooting your iPhone can be an easy fix that resolves temporary glitches and clear out its memory. Doing so can be beneficial if you’re experiencing lags or other issues when using the Instagram app.

Apple also releases updates regularly that include bug fixes and improvements which could help Instagram and other apps to run more smoothly on your iPhone.

9. Give required permissions to Instagram

Any app is bound to crash if it doesn’t have the necessary permissions to access the required data or execute an action. To make sure that Instagram can get access to your device’s features:

Go to Settings, then scroll down until you see all the apps on your iPhone.

10. Uninstall and reinstall app

To do this, simply tap and hold the Instagram app icon.

Tap on the Remove button (-) that appears on the app’s upper left side.

Once done, go to App Store, search for Instagram again, and download and install it.

Launch the app after and see if this fixes your crashing issue.

Note: You can also delete the app from the App Library: tap and hold the app icon → Tap Delete App twice.

11. Check your Language & Region settings

There may be instances where you changed your regional and language settings, say to be able to download a particular app, but forgot to switch back. Altering this setting could lead to unwanted crashes as Instagram fails to authenticate you properly. Sometimes, third-party apps could also accidentally modify your language settings without you knowing.

To ensure that Instagram can run properly, set this setting back to your current location. To revert your settings:

Go to Settings → General.

12. Reset Network Settings on your iPhone

If you accidentally tinkered with your iPhone’s network settings, it’s possible to cause instability on your device and make apps that rely on the internet, like Instagram, crash. 

Resetting your Network Settings should help clear up any issues and return it to its default settings.

Note that doing this doesn’t delete your data except any saved Wi-Fi passwords. To do this:

Go to Settings → General.

Select Transfer or Reset iPhone.

Enter your passcode and confirm the reset.

Once everything’s done, open Instagram and see if it works normally.

13. Erase all Contents and Settings on your iPhone

It’s very rare that you have to resort to this solution, but if all else fails, you can try erasing your iPhone and setting it up as a new device. This will erase all the data on your device — including possible third-party apps that could be causing conflicts with Instagram.

Just be sure you’ve backed up your data before proceeding with this step. To erase all contents and settings on your iPhone:

Go to Settings → General.

Choose Transfer or Reset iPhone.

Enter your passcode and confirm to proceed with the reset.

After everything is done, start setting up your device as new and re-download Instagram.

What else you can do?

If you’ve exhausted all the troubleshooting tips above and Instagram still keeps crashing, it’s probably a good idea to reach out to Instagram Support directly. The friendly folks there are usually pretty helpful and should be able to provide you with further assistance on how to get your app back up and running.

Read more:

Author Profile


Rachel loves anything Apple —from iPhones, to Apple Watches, to MacBooks. She is also a medical writer and a ghostwriter for various publications.

How To Add Custom Fonts To Command Prompt In Windows 10

The Command Prompt in Windows is very limited in terms of customization. Sure, you do simple customization, change colors, add transparency, etc., but there is nothing much you can do. Even the font selection is very limited, with only two to five fonts, depending on what version of Windows you are using.

The good thing is you can now add custom fonts to the Command Prompt.

Before You Get Started

One thing to note is that you can only add monospace fonts to the Command Prompt. If the font you are trying to add is not monospace, then the Command Prompt won’t recognize it and won’t show it in the list of available fonts.

Also, if you don’t already have your favorite monospace fonts installed on your system, there are many web services like Google Fonts, Font Squirrel, DaFont, etc., where you can download a variety of monospace fonts.

After installing the font, you can proceed to add it to the Command Prompt.

Add Custom Fonts to Command Prompt

Command Prompt doesn’t allow you to add fonts via the user interface. You have to manually add them via the Registry Editor.

1. To open Windows Registry Editor, search for regedit in the Start menu and open it. Now, go to the following location:


SOFTWAREMicrosoftWindows NTCurrentVersionConsoleTrueTypeFont

2. On the right-panel you will see a list of fonts like Consolas and Lucida Console that are currently listed in the Command Prompt. Each of these strings has a unique value like “0,” “00,” etc.

If you cannot see your font in the font list, try restarting your system. If you still can’t see the font, either the font you added may not be monospace or the Command Prompt just doesn’t support it, even if it is monospace.

Just to demonstrate, I’ve gone ahead and installed two more fonts, Fira Mono and Ubuntu Mono, and this is how it looks in the registry. As you can see, I’ve named the string values “02” and “03.”

Personally, I think Fira Mono looks good in the Command Prompt.

Play with different monospace fonts and see what works for you.

Comment below sharing your thoughts and experiences regarding using the above method to add fonts to Command Prompt in Windows.

Vamsi Krishna

Vamsi is a tech and WordPress geek who enjoys writing how-to guides and messing with his computer and software in general. When not writing for MTE, he writes for he shares tips, tricks, and lifehacks on his own blog Stugon.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

Rogue Legacy 2 Keeps Crashing Or Freezing On Windows Pc

Rogue Legacy 2 is crashing or freezing on their computers for some users. It’s not new that new games are crashing as it takes time for every great thing to become perfectly optimized. However, a bug might not be the only reason behind this issue, there are some other factors and their respective solutions that we are going to see in this article.

Rogue Legacy 2 keeps crashing or freezing in Windows 11/10

If Rogue Legacy 2 keeps crashing and freezing on PC, start the troubleshooting process by checking for updates. If updating was not useful at all then try the listed solutions.

Close the background apps

Verify integrity of game files

Disable overlay apps

Update Graphics Driver

Run the game as an administrator

Change the power options

Run the game in DirectX11

Update Rogue Legacy 2

Let’s start with the first way to solve the issues.

1] Close the background apps 2] Verify integrity of game files

By some means, game files can be corrupted or missing. You can verify the integrity of game files and repair them. Here’s how to do so.

For Steam Users

Open Steam and go to Library.

For Epic Game Users

Open Epic Games and go to its library.

Go to Rogue Legacy 2.

The process may take some time. Once done restart your computer, this should resolve the issues, and if it is not resolved, move to the next fix.

3] Disable Overlay apps

Next up, we are going to disable Overlay apps or Overlay in apps that can interfere with your game and cause issues. The following are the steps to disable the game’s Overlay in Discord.

Open the Discord app.

Now, switch off the in-game overlay for your game.

Reboot your computer.

You should also disable Steam Overlay for your game if the option is enabled.

Finger-crossed, you won’t face issues anymore. But if it continues to persist then try the next fix.

4] Update Graphics Driver

Updating Graphics Driver may sound like a simple task. However, it seems that doing so always slips off our minds, which in turn causes freezing and crashing problems. Some ways to update the Graphics driver are.

Hopefully, this will do the job for you.

5] Run the game as an administrator

In the Compatibility tab, select Run this program as an administrator.

Select Apply and then Ok to save the changes.

Hopefully, this will do the job for you.

6] Change the power settings

If you have set the power settings at low mode then switching it up to higher settings is recommended as it may solve the issues by giving your game an ample amount of resources to run.

Switch it to High Performance or Ultimate Performance.

Once done, restart your PC. Hopefully, you won’t need another fix, but if you do then the next fix is available.

7] Stop Windows from turning off the Controller

Some users had reported that when they were playing with the Xbox controller, the game used to crash after an hour or so. So, they did some tinkering with the Device Manager. We are going to do the same and see if that works.

Open Device Manager.

Look for Xbox Controller, it might be under Sound, video and game controllers.

Finally, save your changes and see if the issue persists.

If nothing worked, then you need to wait for the update as it will optimize the game even further.

Also Read: L.A. Noire not working, launching or opening on Windows PC 

System Requirements to play Rogue Legacy 2

Your PC must have the following requirement for smooth gameplay.



OS: Windows 7

VIDEO CARD: Nvidia GTX 680, AMD R9 280X






RAM: 16 GB

OS: Windows 11/10

VIDEO CARD: Nvidia GTX 680, AMD R9 280X





Why does my Rogue Company keep crashing?

Rogue Company is out for a while, and hence, is decently optimized to work on a Windows computer. So, the first few things that you need to check are the GPU driver version, corruption of game files, and the system requirements. Or better, check our guide and see what to do when Rogue Company keeps crashing.

How do you fix a game that keeps crashing for no reason?

If a game keeps crashing for no reason, check your system requirements and make sure that the game is compatible to run on your system. Also, check the software requirements, things such as Visual C++ Redistributable and DirectX, are required to play any modern game.

Update the detailed information about Command Prompt Opens And Closes Immediately; Keeps Crashing on the website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!