Windows 10: Cmd starting and closing instantly

Discus and support Cmd starting and closing instantly in Windows 10 Gaming to solve the problem; Every couple of minutes Cmd starts up and immediately closes again. I've looked for this issue and it's not exactly unique. Unfortunately the window... Discussion in 'Windows 10 Gaming' started by Bram Nooitgedagt, Dec 28, 2024.

  1. Cmd starting and closing instantly


    Every couple of minutes Cmd starts up and immediately closes again. I've looked for this issue and it's not exactly unique. Unfortunately the window closes so quickly that I can't see the name. Screengrabs or recordings are also too slow. Other users have used succesfully used the name to solve their issues with either Autoruns of TaskScheduler. Neither of those work for me, because I can't find the task/autorun/exe-file/etc. that is causing my issue. Any help would be greatly appreciated.

    :)
     
    Bram Nooitgedagt, Dec 28, 2024
    #1

  2. Cmd instantly closes

    So my cmd instantly closes.

    That is because you have an Autoruns key in there which is starting explorer and then exiting.

    That key seems to be there because something else is broken and explorer is not starting when you log on.

    Note that the key is not required for normal operation of Windows.

    You need to fix explorer first and then remove the Autoruns key.

    To fix explorer:

    • Run regedt32
    • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
    • On the right side, there should be a value called Shell.
    • In the right hand side pane, make sure that the default string value of Shell is explorer.exe.
    • Save any changes
    • Log off and log on again.

    Source Windows explorer.exe does not start or open at startup
     
    DavidPostill, Dec 28, 2024
    #2
  3. DiMiliano Win User
    CMD keeps popping up and closing instantly

    Hi, I updated my computer to Windows 11 recently, and I updated everything in my PC. But my cmd is popping up and closing instantly, and it disturbs me. Is there any way to fix it?. I saw some threads in this site but unfortunately I do not have the same bug as I saw.
    My cmd shows me:

    Cannot access file C:\Program Files\DriverSetupUtility\FUB\+ (multiple times).

    Thanks in advance.
     
    DiMiliano, Dec 28, 2024
    #3
  4. Dddsasul Win User

    Cmd starting and closing instantly

    Cmd instantly closes

    So my cmd instantly closes, I tried following this: CMD.exe closes immediately after calling (Win7 64) this kind of solves the problem but it introduces a new one, when my pc starts, windows explorer doesn't start (and probably some other processes). I can manually run the explorer process from task manager every time I start windows but that's annoying.

    What I currently have in that registry is

    I was wondering what can I do to fix this (Keep in mind that I am an inexperienced user, I do not understand what's inside that registry, it was already there)
     
    Dddsasul, Dec 28, 2024
    #4
Thema:

Cmd starting and closing instantly

Loading...
  1. Cmd starting and closing instantly - Similar Threads - Cmd starting closing

  2. Cmd starting and closing instantly

    in Windows 10 Software and Apps
    Cmd starting and closing instantly: Every couple of minutes Cmd starts up and immediately closes again. I've looked for this issue and it's not exactly unique. Unfortunately the window closes so quickly that I can't see the name. Screengrabs or recordings are also too slow. Other users have used succesfully...
  3. CMD keeps popping up and closing instantly

    in Windows 10 Gaming
    CMD keeps popping up and closing instantly: Hi, I updated my computer to Windows 11 recently, and I updated everything in my PC. But my cmd is popping up and closing instantly, and it disturbs me. Is there any way to fix it?. I saw some threads in this site but unfortunately I do not have the same bug as I saw.My cmd...
  4. CMD keeps popping up and closing instantly

    in Windows 10 Software and Apps
    CMD keeps popping up and closing instantly: Hi, I updated my computer to Windows 11 recently, and I updated everything in my PC. But my cmd is popping up and closing instantly, and it disturbs me. Is there any way to fix it?. I saw some threads in this site but unfortunately I do not have the same bug as I saw.My cmd...
  5. CMD and Powershell instantly closes after opening it.

    in Windows 10 BSOD Crashes and Debugging
    CMD and Powershell instantly closes after opening it.: For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just randomly closes.I have been looking for fixes for so long can someone please help me?...
  6. CMD and Powershell instantly closes after opening it.

    in Windows 10 Gaming
    CMD and Powershell instantly closes after opening it.: For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just randomly closes.I have been looking for fixes for so long can someone please help me?...
  7. CMD and Powershell instantly closes after opening it.

    in Windows 10 Software and Apps
    CMD and Powershell instantly closes after opening it.: For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just randomly closes.I have been looking for fixes for so long can someone please help me?...
  8. CMD promt opens and closes instantly.

    in Windows 10 BSOD Crashes and Debugging
    CMD promt opens and closes instantly.: I tried SFC and Anti-virus scans, both of these failed to fix it. I managed to capture the CMD screen using ShadowPlay https://answers.microsoft.com/en-us/windows/forum/all/cmd-promt-opens-and-closes-instantly/bfc9daab-0f8f-4afd-acef-45893f5d10b2
  9. [SOLVED] CMD becomes smaller and instantly closes: Can't use CMD

    in Windows 10 BSOD Crashes and Debugging
    [SOLVED] CMD becomes smaller and instantly closes: Can't use CMD: Hello. I've been having trouble using the command prompt recently. Whenever I open it, by any means, it quickly shrinks and closes, without me being able to use it. I've already tried opening it as administrator, and executing it with the "/k" suffix. Extra info 1: When I...
  10. CMD becomes smaller and instantly closes: Can't use CMD

    in Windows 10 BSOD Crashes and Debugging
    CMD becomes smaller and instantly closes: Can't use CMD: Hello. I've been having trouble using the command prompt recently. Whenever I open it, by any means, it quickly shrinks and closes, without me being able to use it. I've already tried opening it as administrator, and executing it with the "/k" suffix. Extra info 1: When I...