Windows 10: How can I find out what is causing a Cmd Prompt to open and close?

Discus and support How can I find out what is causing a Cmd Prompt to open and close? in Windows 10 Support to solve the problem; I was on vacation for about 10 days, so I'm not sure exactly when an app/windows was updated but this problem definitely started in the last 2 weeks.... Discussion in 'Windows 10 Support' started by chrisan, May 24, 2017.

  1. chrisan Win User

    How can I find out what is causing a Cmd Prompt to open and close?


    I was on vacation for about 10 days, so I'm not sure exactly when an app/windows was updated but this problem definitely started in the last 2 weeks.

    I will be typing away in my editor or playing a game and I will see a Command Prompt open and close very fast. Sometimes it will take focus away from my game and leave me in an alt-tabbed kinda state where I have to click back in the game to regain mouse control

    How can I find what could be periodically launching this?

    I have opened Task Scheduler and found some hourly tasks (Chrome/Adobe/Dropbox) that I changed to run in mornings only but this "popup" happened again. Sorting the Task Scheudler by Last Run Time I don't see anything that has run in the last hour

    Where else could this be happening or is there any other way to trace when a program launches Command Prompt?

    :)
     
    chrisan, May 24, 2017
    #1
  2. Michaeru Win User

    Windows 10.1. Looking to find out what is causing a rare (monthly) DPC_WATCHDOG_VIOLATION blue screen

    Hello,

    I just want to make sure everything is alright with my PC, or if it is a simple driver issue, or anything worse.

    I have only blue screened on my PC 3 times over the last 3 months, but all with the mysterious 'DPC_WATCHDOG_VIOLATION' identifier with it.

    No problems when updating NVIDIA graphics card drivers, getting BIOS updates, and the usual checking for updates. Just curious as to what may be specifically causing the rare blue screening.

    I uploaded both my MSinfo32 and my single minidump files into one ZIP file, into OneDrive, in case that may help.

    https://1drv.ms/u/s!AkgOnSrUiugvkC17mJx6M2nTpfen
     
    Michaeru, May 24, 2017
    #2
  3. Michaeru Win User
    Windows 10.1. Looking to find out what is causing a rare (monthly) DPC_WATCHDOG_VIOLATION blue screen

    Thanks for the response!

    Here is a link to my list of drivers, in a text file, using Driver View, as you requested.

    https://1drv.ms/t/s!AkgOnSrUiugvkC549BgHQnxG62J2

    The PC is an Alienware Area-51 R2. I couldn't really tell you much about the motherboard other than that it is made by Alienware.

    Here is my MSinfo32 file and minidump once more.

    https://1drv.ms/u/s!AkgOnSrUiugvkC17mJx6M2nTpfen
     
    Michaeru, May 24, 2017
    #3
  4. How can I find out what is causing a Cmd Prompt to open and close?

    Past experience is it's either Office checking for updates, or a printer/driver looking for updates. The best solution is to screen capture it when it happens, so if you know it happens at a certain time, run a screen capture software, and the titlebar of the CMD should show you what is doing it. The other thing you can try is a little program called Focus. Since you said it takes focus away when it happens maybe Focus can tell you what is causing it.

    focus - happydroid
     
    Bobby Phoenix, May 24, 2017
    #4
  5. Samuria Win User
    One drive often runs this to update onedrive a very handy tool for this sort of thing is WinPatrol Downloads Page it warns you before things like this are added and seeks permision so you know what doing it. Its not AV but in my experance stops more than any AV as it will block and malware trying to set its self to start
     
    Samuria, May 24, 2017
    #5
  6. VBF
    VBF Win User
    Good morning all. My first post so please be nice! *Huh

    OP, have you run your A/V scans including Rootkits?

    Have you run AntiMalware scan? I like Malwarebytes Anti-Malware Malwarebytes | Free Cyber Security & Anti-Malware Software

    (I use the free one so have to scan manually)

    Does this issue occur if you just boot up and watch the screen for a while (coffee time!)

    If not, can you definitively say what programs are running in the foreground? You mention editor or game...are they both active or just one or...?
     
  7. chrisan Win User
    Thanks all for the replies! I have no viruses/malware.

    I ran the focus tool as suggested by Bobby and it appears to be DisplayFusion. Everytime I notice it flash on my screen I switch to the focus app and see DisplayFusion.exe.

    I'll mark this as solved and reach out to their developers from here. Thanks again!
     
    chrisan, May 24, 2017
    #7
  8. EdTittel Win User

    How can I find out what is causing a Cmd Prompt to open and close?

    You should check the Scheduled Tasks and search for DisplayFusion.exe. Because MS makes this hard to do in Task Manager, try Nir Sofer's excellent TaskSchedulerView. I used this last year to find an incredibly vexing pop-up cmd window, which proved to be a scheduled update check from Driver Update (which I no longer use, partly for that reason). I also wrote an article for TechTarget in December of last year that explains what I did, and how I did it that you might find interesting and informative: Take control of Windows tasks with TaskSchedulerView.
    HTH,
    --Ed--
     
    EdTittel, May 24, 2017
    #8
  9. chrisan Win User
    Thanks Ed, that app indeed shows more than the normal "Task Scheduler"

    I had it happen again and I see OfficeBackgroundTaskHandlerRegistration was the last run (nothing else was close by minutes).

    I found this thread which talks about insider builds (I am not an insider) Identifying an App? - Windows 10 Forums but I'm guessing this made it into the production build.

    I guess DisplayFusion.exe would try to capture/do something with that window, I'm still not sure why that shows up with the focus app.
     
    chrisan, May 24, 2017
    #9
  10. VBF
    VBF Win User
Thema:

How can I find out what is causing a Cmd Prompt to open and close?

Loading...
  1. How can I find out what is causing a Cmd Prompt to open and close? - Similar Threads - find causing Cmd

  2. Cmd prompt randomly opens runs a script and closes

    in Windows 10 Gaming
    Cmd prompt randomly opens runs a script and closes: When Im doing stuff like school work or playing video games command prompt randomly opens up and closes. Its really annoying and im scared theres something wrong with my pc and i really hope its not messed up. Once i caught it and it says it was "terminating damaged files"...
  3. Cmd prompt randomly opens runs a script and closes

    in Windows 10 Software and Apps
    Cmd prompt randomly opens runs a script and closes: When Im doing stuff like school work or playing video games command prompt randomly opens up and closes. Its really annoying and im scared theres something wrong with my pc and i really hope its not messed up. Once i caught it and it says it was "terminating damaged files"...
  4. CMD prompt opens randomly and closes and can't permanently delete the file causing it

    in Windows 10 Gaming
    CMD prompt opens randomly and closes and can't permanently delete the file causing it: Hello, my issue is similar to these two : https://answers.microsoft.com/en-us/windows/forum/all/cmd-opens-and-closes-rapidly-every-10-minutes/983d14c9-b33f-412d-9051-882f03c339b0...
  5. CMD prompt opens randomly and closes and can't permanently delete the file causing it

    in Windows 10 Software and Apps
    CMD prompt opens randomly and closes and can't permanently delete the file causing it: Hello, my issue is similar to these two : https://answers.microsoft.com/en-us/windows/forum/all/cmd-opens-and-closes-rapidly-every-10-minutes/983d14c9-b33f-412d-9051-882f03c339b0...
  6. CMD prompt opens randomly and closes and can't permanently delete the file causing it

    in AntiVirus, Firewalls and System Security
    CMD prompt opens randomly and closes and can't permanently delete the file causing it: Hello, my issue is similar to these two : https://answers.microsoft.com/en-us/windows/forum/all/cmd-opens-and-closes-rapidly-every-10-minutes/983d14c9-b33f-412d-9051-882f03c339b0...
  7. Random CMD prompt opens randomly and closes.

    in Windows 10 Gaming
    Random CMD prompt opens randomly and closes.: For the past couple of months before I installed windows 11 and was on windows 10 a cmd prompt would open, interrupt Fullscreen then close a second later. The name of the cmd prompt was a file directory to something in my AppData folder but checking for the file it doesn't...
  8. Random CMD prompt opens randomly and closes.

    in Windows 10 Software and Apps
    Random CMD prompt opens randomly and closes.: For the past couple of months before I installed windows 11 and was on windows 10 a cmd prompt would open, interrupt Fullscreen then close a second later. The name of the cmd prompt was a file directory to something in my AppData folder but checking for the file it doesn't...
  9. How to find out what caused BSOD?

    in Windows 10 BSOD Crashes and Debugging
    How to find out what caused BSOD?: I got a BSOD with the message "WHEA uncorrectable error" and nothing else specified Then it booted into BIOS repeatedly until I turned off the PC and turned on back again Is there a way to check now what caused this? Thanks 174997
  10. How to find out what caused BSOD?

    in Windows 10 Support
    How to find out what caused BSOD?: I got a BSOD with the message "WHEA uncorrectable error" and nothing else specified Then it booted into BIOS repeatedly until I turned off the PC and turned on back again Is there a way to check now what caused this? Thanks 174997