Command Prompt opens and
closes immediately on your PC? Here are 7 ways you can fix it. This is The Windows Club.
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. Here we have given 7 ways to solve it,
so perform as shown and you will be able to fix this issue.
Lets get started. The first thing you can try
is rebooting your computer. It will clear temporary system errors and
glitches, and resolve the problem for you. Method 2:
The next thing you can do is run an anti-virus scan. If you are
using Windows Security, then open the Windows Security app using the Search function.
Now, go to the Virus & threat protection tab and then click on the Scan options button.
After that, choose the type of virus scans you want to perform from Quick scan, Full
scan, Custom scan, and Offline scan, and press the Scan now button.
It will then start scanning your computer for viruses. Once done, you can
remove the detected malware from your computer. Method 3:
Another thing you can do is run the SFC scan. Type Windows PowerShell in the search
bar and run it as an administrator. Type sfc /scannow and press
Enter to run the command. Wait for the command to finish running. Restart your PC. Method 4:
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.
First, press Win + R to open Run. Type sysdm.cpl and press Enter to
open the System Properties window. Now, go to the Advanced tab and click
on the Environment Variables button. After that, under the System Variables
section, click on the Path field. Next, select the Edit button and
then click on the New button. Then, enter the C:\Windows\SysWow64
path and then press Enter. Finally, select the OK button to save
changes and then reboot your computer. Method 5: Another thing you can try is
making a new user account. First, launch the Settings app and
then navigate to the Accounts tab. Select the Family & other users option
and click on the Add account button. Next, type the email address for
your new account on the next prompt. Now, click on the Next button and follow the
prompted instructions to complete the process. When done, sign out and then
login back with your new account. Finally, open Command Prompt and
then check if the issue is resolved. Method 6:
If there is a third-party software conflict that is causing Command Prompt to crash.
Open Run again and type msconfig and click on OK. Move to the Services tab, checkmark the
checkbox called Hide all Microsoft services, and select the Disable all button
to turn off third-party services. Now, go to the Startup tab, click on the Open Task
Manager button, and disable your startup apps. Next, in the System Configuration window,
click on the OK button and restart your PC. 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. Method 7: The last thing you can do is reset your Windows.
Open Windows Settings and click on Recovery. Select the Reset PC option.
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. So, that’s it.
Subscribe to The Windows Club for all your tech solutions related to Windows.
Thanks for watching.