Windows 10: How do I stop cmd from opening on start and running taskkill /f /im explorer.exe

Discus and support How do I stop cmd from opening on start and running taskkill /f /im explorer.exe in Windows 10 BSOD Crashes and Debugging to solve the problem; About 3 days ago, i installed cod MW2 2022 and i was doing some performance optimizations via checking windows file integrity, running disk cleans etc... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by matthewkingsbury2, Aug 28, 2023.

  1. How do I stop cmd from opening on start and running taskkill /f /im explorer.exe


    About 3 days ago, i installed cod MW2 2022 and i was doing some performance optimizations via checking windows file integrity, running disk cleans etc and mid disk clean, i was clearing the update files to be specific, it gave me an explorer error, and since then cmd will open, and run the command taskkill /f /im /explorer.exe. Usually its right on start up but sometimes ill be mid game and it will happen.

    :)
     
    matthewkingsbury2, Aug 28, 2023
    #1

  2. Restore Desktop after taskkill /f /im explorer.exe

    Hi Tyson,

    Welcome to Microsoft Community.

    I'm Hahn and I'm here to help you with your concern.

    I’m sorry to hear that you are having trouble restoring your desktop after using taskkill /f /im explorer.exe. you can try this command to restart the explorer.exe process:



    taskkill /F /IM explorer.exe & start explorer.



    This command will terminate and then immediately restart the explorer.exe process so you can see your desktop again. You can enter this command in the same Command Prompt window that you used for taskkill /f /im explorer.exe.



    Alternatively, you can create a batch file with this command and run it whenever you need to restart explorer.exe. To do that, follow these steps:



    Open Notepad.

    Copy and paste the following script to the text file:

    taskkill /f /im explorer.exe start explorer.exe.



    Click the File menu and select the Save As option.

    Type a descriptive name with a .bat file extension (for example, restart_explorer.bat) and save it on your desktop or any other location that you prefer.

    Double-click the batch file to run it whenever you need to restart explorer.exe.

    If there is anything not clear, please do not hesitate to let me know.



    Your Sincerely

    | Microsoft Community Support Specialist
     
    Hahn - MSFT, Aug 28, 2023
    #2
  3. I need a batch file that opens cmd, runs two commands, and keeps cmd open

    I need a batch file that opens cmd, runs two commands, and keeps cmd open

    This is an invalid command. You need to use:

    • /IM image name. The image name of the process to be terminated. Wildcard '*' can be used to specify all image names.

    Use the following batch file (test.cmd):

    To run it and keep the cmd shell open use the following command:

    • /K Run Command and then return to the CMD prompt. This is useful for testing, to examine variables

    Further Reading

    • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
    • cmd - Start a new CMD shell and (optionally) run a command/executable program.
    • start - Start a program, command or batch script (opens in a new window).
    • taskkill - End one or more processes (by process id or image name).
     
    DavidPostill, Aug 28, 2023
    #3
  4. How do I stop cmd from opening on start and running taskkill /f /im explorer.exe

    taskkill fails for process when run from Notepad++ plugin NppExec

    I made a batch file that kills a couple tasks and restarts them like so:

    This bat file runs fine when run through a cmd prompt. However, when trying to run it through NppExec, the first taskkill fails with Reason: Access is denied. The second taskkill and the start work fine.

    Why might one fail and another succeed when running the batch via command prompt has both succeed? How might I fix it so both tasks end?
     
    David Starkey, Aug 28, 2023
    #4
Thema:

How do I stop cmd from opening on start and running taskkill /f /im explorer.exe

Loading...
  1. How do I stop cmd from opening on start and running taskkill /f /im explorer.exe - Similar Threads - stop cmd opening

  2. How do I stop cmd from opening on start and running taskkill /f /im explorer.exe

    in Windows 10 Gaming
    How do I stop cmd from opening on start and running taskkill /f /im explorer.exe: About 3 days ago, i installed cod MW2 2022 and i was doing some performance optimizations via checking windows file integrity, running disk cleans etc and mid disk clean, i was clearing the update files to be specific, it gave me an explorer error, and since then cmd will...
  3. How do I stop cmd from opening on start and running taskkill /f /im explorer.exe

    in Windows 10 Software and Apps
    How do I stop cmd from opening on start and running taskkill /f /im explorer.exe: About 3 days ago, i installed cod MW2 2022 and i was doing some performance optimizations via checking windows file integrity, running disk cleans etc and mid disk clean, i was clearing the update files to be specific, it gave me an explorer error, and since then cmd will...
  4. Restore Desktop after taskkill /f /im explorer.exe

    in Windows 10 Gaming
    Restore Desktop after taskkill /f /im explorer.exe: I found this for changing the system 32 folder. The System32 folder is a Windows system folder and you should not interfere with it in any way unless you know exactly what you are doing. If you insist then you can use this method to gain full access.Create a desktop shortcut...
  5. Restore Desktop after taskkill /f /im explorer.exe

    in Windows 10 Software and Apps
    Restore Desktop after taskkill /f /im explorer.exe: I found this for changing the system 32 folder. The System32 folder is a Windows system folder and you should not interfere with it in any way unless you know exactly what you are doing. If you insist then you can use this method to gain full access.Create a desktop shortcut...
  6. taskkill/F/FI "status eq running"_is it safe

    in Windows 10 BSOD Crashes and Debugging
    taskkill/F/FI "status eq running"_is it safe: Hello All,I just want to know that is the code taskkill/F/FI "status eq running" safe for my system or not. If it is not, then could you please provide any details on why it is not. Thanks...
  7. taskkill/F/FI "status eq running"_is it safe

    in Windows 10 Gaming
    taskkill/F/FI "status eq running"_is it safe: Hello All,I just want to know that is the code taskkill/F/FI "status eq running" safe for my system or not. If it is not, then could you please provide any details on why it is not. Thanks...
  8. taskkill/F/FI "status eq running"_is it safe

    in Windows 10 Software and Apps
    taskkill/F/FI "status eq running"_is it safe: Hello All,I just want to know that is the code taskkill/F/FI "status eq running" safe for my system or not. If it is not, then could you please provide any details on why it is not. Thanks...
  9. How do you stop search in f. explorer started from taskbar search box?

    in Windows 10 Support
    How do you stop search in f. explorer started from taskbar search box?: 21H1 19043.1052 Hi, I've just tried a search for a document launched from the taskbar search box, choosing 'Search in File Explorer'. File explorer opens, and the dreaded green progress bar starts to creep across as expected. Now, I wish to cancel that search. But I find I...
  10. Registry is not starting from main .exe, RUN and in cmd

    in Windows 10 Support
    Registry is not starting from main .exe, RUN and in cmd: i have no idea what's making it not pop up im trying all the ways to get it to open, i tried: * regedit in run(win+r) * registry.exe in cmd with admin rights * clicking on the main .exe located in the windows folder 18138