Command Prompt opens and closes immediately; Keeps crashing
Aug 16, 2023
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. If Command Prompt crashes or closes instantly after opening it on your Windows PC, you can use the following solutions to fix the issue: 1] Restart your computer 2] Scan and remove malware from your PC 3] Perform an SFC scan to repair corrupted system files 4] Configure Environment Variable 5] Create a new user account 6] Uninstall a conflicting program 7] Reset Windows Learn more on https://www.thewindowsclub.com/comman …
Content
0 -> Command Prompt opens and
closes immediately on your PC?
3.72 -> Here are 7 ways you can fix it.
11.7 -> This is The Windows Club.
This issue could be caused
15.18 -> due to damaged or missing system files. Apart
from that, a third-party program conflict,
21 -> a corrupted user profile, and malware infection
can also be the reasons for this issue.
27.48 -> Here we have given 7 ways to solve it,
so perform as shown and you will be able
33.48 -> to fix this issue.
Lets get started.
42.24 -> The first thing you can try
is rebooting your computer.
45.78 -> It will clear temporary system errors and
glitches, and resolve the problem for you.
56.04 -> Method 2:
The next thing you
58.56 -> can do is run an anti-virus scan. If you are
using Windows Security, then open the Windows
64.44 -> Security app using the Search function.
Now, go to the Virus & threat protection
68.94 -> tab and then click on the Scan options button.
After that, choose the type of virus scans you
75.24 -> want to perform from Quick scan, Full
scan, Custom scan, and Offline scan,
81.78 -> and press the Scan now button.
It will then start scanning
85.68 -> your computer for viruses. Once done, you can
remove the detected malware from your computer.
97.14 -> Method 3:
Another thing you can do is run the SFC scan.
102.6 -> Type Windows PowerShell in the search
bar and run it as an administrator.
107.94 -> Type sfc /scannow and press
Enter to run the command.
114.54 -> Wait for the command to finish running.
120.18 -> Restart your PC.
128.34 -> Method 4:
A missing variable
130.8 -> could be a reason for Command Prompt crashes. So,
if the scenario applies, you can configure the
136.68 -> environment variable accordingly to fix the issue.
First, press Win + R to open Run.
143.82 -> Type sysdm.cpl and press Enter to
open the System Properties window.
149.52 -> Now, go to the Advanced tab and click
on the Environment Variables button.
154.38 -> After that, under the System Variables
section, click on the Path field.
159.6 -> Next, select the Edit button and
then click on the New button.
163.44 -> Then, enter the C:\Windows\SysWow64
path and then press Enter.
166.14 -> Finally, select the OK button to save
changes and then reboot your computer.
176.16 -> Method 5:
177.12 -> Another thing you can try is
making a new user account.
181.68 -> First, launch the Settings app and
then navigate to the Accounts tab.
186.36 -> Select the Family & other users option
and click on the Add account button.
191.76 -> Next, type the email address for
your new account on the next prompt.
197.16 -> Now, click on the Next button and follow the
prompted instructions to complete the process.
203.46 -> When done, sign out and then
login back with your new account.
208.62 -> Finally, open Command Prompt and
then check if the issue is resolved.
218.58 -> Method 6:
If there is a third-party software
222.18 -> conflict that is causing Command Prompt to crash.
Open Run again and type msconfig and click on OK.
229.26 -> Move to the Services tab, checkmark the
checkbox called Hide all Microsoft services,
234.72 -> and select the Disable all button
to turn off third-party services.
238.98 -> Now, go to the Startup tab, click on the Open Task
Manager button, and disable your startup apps.
246.48 -> Next, in the System Configuration window,
click on the OK button and restart your PC.
252.9 -> On the next startup, open Command Prompt
and check if the problem is fixed.
257.4 -> If yes, you can start enabling services one by
one and analyze which one is causing the problem.
264.12 -> Once you have analyzed the culprit, uninstall
the program to fix the issue permanently.
274.98 -> Method 7:
276.12 -> The last thing you can do is reset your Windows.
Open Windows Settings and click on Recovery.
283.26 -> Select the Reset PC option.
In the prompted dialog,
286.8 -> you can either choose the Keep my files option
or Remove everything and then tap on OK.
290.7 -> After that, follow the prompted
instructions and reinstall Windows.
295.98 -> Once done, restart your PC and see if
Command Prompt is working without any issues.
302.4 -> So, that’s it.
Subscribe to The Windows Club for all
305.76 -> your tech solutions related to Windows.
Thanks for watching.
Source: https://www.youtube.com/watch?v=OdSaH5AUUFQ