Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

Windows 10 Command Prompt Appears Then Disappears

Madalina DinitaDecember 18, 2020 Comments (1)

Command Prompt is a handy Windows 10 tool you can use to run various commands or troubleshoot your computer. If CMD appears and then immediately disappears, we’ll show you how you can fix this issue.

Contents

  • 1 Fix Command Prompt Appears and Disappears
    • 1.1 Check If You’re Really Running the Command in CMD
    • 1.2 Close Any Suspicious Programs and Processes
    • 1.3 Tell CMD to Stay Open
    • 1.4 Create a CMD Shortcut
    • 1.5 Disable OfficeBackgroundTaskHandler
    • 1.6 Update Your Drivers

Fix Command Prompt Appears and Disappears

Check If You’re Really Running the Command in CMD

Oftentimes, Command Prompt suddenly disappears if you’re running a CMD-specific command in a Run window. For example, you’re running ipconfig.exe.

When the command stops running, the Command Prompt window it ran in automatically closes. Don’t worry about that, there’s nothing wrong with your CMD tool.

Run your commands in a stand-alone Command Prompt window. The window won’t close when the command completes.

Close Any Suspicious Programs and Processes

If CMD disappears after a few seconds, this indicates another program might be conflicting with it.

Open the Task Manager and click on the Processes tab. Check if you notice any unusual programs or processes. Right-click on them and select End Task.task manager end task pc

Also, if this issue occurred shortly after you installed a new program on your machine, disable that program. If it’s not an essential program, go ahead and uninstall it.

Tell CMD to Stay Open

There’s a specific command you can run to tell Command Prompt to stay open.

Press the Windows + R key to open a Run window. Then enter the cmd /k ipconfig /all command and hit Enter.

Create a CMD Shortcut

Some users were able to fix this issue by creating a dedicated CMD shortcut.

  1. Right-click on your desktop and select New → Shortcut.
  2. Then browse your computer and go to Command Prompt’s location. It should be under C:\windows\system32\cmd.create cmd shortcut
  3. Hit Next and type a name for the shortcut.
  4. Hit the Finish button to create the shortcut on your desktop.

Disable OfficeBackgroundTaskHandler

If the OfficeBackgroundTaskHandler task is available on your computer, turn it off. Check if the CMD issue is gone.

  1. Type ‘task scheduler‘ in the Windows Search bar.
  2. Double-click on the Task Scheduler.
  3. Then navigate to Microsoft → Office.
  4. Right-click on OfficeBackgroundTaskHandlerRegistration and disable the task.

OfficeBackgroundTaskHandlerRegistration

Update Your Drivers

Open the Device Manager and check if there’s any yellow exclamation mark next to your drivers. Pay attention to the Network adapter drivers. Ensure they’re up-to-date.

update network adapter driver pc

If you still can’t use Command Prompt because the tool keeps disappearing, switch to PowerShell. You can use the framework to run any CMD commands.

Categories: Windows

Author Madalina Dinita

Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer. She is interested in all things technology, especially emerging technologies -- AI and DNA computing in particular.

You Might Also Like

  • 4 Ways to Disable Your Microphone in Windows 10

    Mel HawthorneWindows
  • windows 10 disable drag and drop

    Windows 10: How to Disable Drag and Drop

    Madalina DinitaWindows
  • iMovie Windows Header

    9 Best iMovie Equivalents for Windows 11

    Tamal DasSoftware
  • Remote Restart Shutdown Header

    How to Remote Reboot/Shutdown a Windows 11 PC

    Susan SheffieldWindows

Comments

  1. David Szumski says:
    May 5, 2022 at 2:14 pm

    It appears then extremely fast disappears. That only happened in the past week or so. It makes me suspicious I try not to think about it. At least I am not the only one. It happens when it is not in use for just a split second not using it as if something else used it as fast as possible not to be detected only as something no human could do. I try not to get paranoid. I have seen some strange things glitches or something

Leave a Reply

Your email address will not be published. Required fields are marked *

how to allocate more memory to a program

How to Allocate More Memory to a Program in Windows

marvel rivals memory leak fix

Marvel Rivals Using Too Much Memory – How to Fix

how to create a macro in word

How to Create a Macro in Word

how to set video as screen saver

How to Set a Video as Your Screen Saver on Windows 11

how to fix 0xc000007b Error

Error 0xc000007b – What Is It and How to Fix It

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Legal & Privacy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on December 18, 2020 by Mitch Bartlett