This question already has an answer here:

I occasionally see the Windows command line window open and close quickly after. I recently formatted, and I'm seeing the issue again.

It's irrationally annoying me, and I was wondering if there's a way to find out what's causing it.

marked as duplicate by karel, Pimp Juice IT, user477799, Run5k, Community Jun 5 '17 at 18:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • On my PC, I've noticed it also, particularly during Windows update The process is transitory, so difficult to track down, but SysInternals Process Explorer might show it running under one of the svchost instances (see the lower lower pane, Ctrl-L). As you say, it's a minor annoyance but probably not of any significance. – DrMoishe Pippik Jun 5 '17 at 0:03
  • @DrMoishePippik I've been seeing it open much more often as of late, which is why I'm curious as to what's going on. I've installed the application you mention, should I just keep it open until the next time I notice the command line used? – Shane Jun 5 '17 at 0:12
  • @CConard96 Thanks, I've searched but couldn't find similar questions. On first look it appears that could indeed be the same issue. I'll mark this as solved as soon as I can confirm. – Shane Jun 5 '17 at 0:25
  • Yes, though even with it running, the CMD window may disappear before you the source shows. You might also check Scheduled Tasks to see if there's on that coincides with the popup CMD prompt. – DrMoishe Pippik Jun 5 '17 at 0:26
  • @DrMoishePippik Yeah, I checked the task handler before formatting, but it seems clicking on the library doesn't show ALL the tasks, which would explain why I couldn't find it. I have to go into Microsoft - Office to see the task I think is causing it. – Shane Jun 5 '17 at 0:28