Share via

File explorer opens when I try to open CMD

Anonymous
2020-03-27T01:53:46+00:00

The title is pretty self-explanatory but I'll repeat it.

When I type cmd in the windows search bar I get a small window that pops down really quick. After that file explorer opens up. when I press WIN+R and type in CMD it does the same. When I open cmd with powershell I do get to see what it says. See image.

 This is what popus up when I open CMD in powershell and this is the same message I get when I try to open a terminal in lets say visual studio code.

I guess cmd runs the explorer command immediatly when it opens but I have no clue how this happend.

I thought it might be a virus for some odd reason, because I literally can't think of anything else so my antivirus is scanning atm.

Any help would be much appreciated.

Also, When I restarted my PC and ran CMD again it ran some lines of commands but I was to baffled to take a screenshot next time when I restart I'll screenshot it because it ran slow enough to take a screenshot of.

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

11 answers

Sort by: Most helpful
  1. Anonymous
    2020-03-30T05:36:20+00:00

    Hi Paul,

    EDIT: Disregard the bottom text. After googling a bit I found a stackoverflow page where the guy told me to do the same thing as you asked, checking regedit. turns out i have a current_user entry after all. I have very bad eyes so that's why I missed it. the autorun entry was there and I removed it.

    It pointed towards a firewall module that was a part of a virus that was removed automatically when I installed something a few days ago. So it pointed to nothing, that's why it couldn't execute its task. In the end it could've only been a registry entry when I think back. 

    Thanks for baring with me and of course I really appreciate the help!

    Kind regards,

    Rajiv

    END EDIT

    I have a 64bit system, I already tried opening cmd in the system32 folder but it doesn't do anything. In both system32 and SysWow64 folders the cmd opens and closes real fast. When i run cmd like this though it doesn't open explorer and when I open both cmd's in powershell it doesn't give me the "file or directory find: explorer.exe no such file or directory found" message. usually when i open cmd in powershell with the cmd command it displays this message and opens explorer. when I open cmd with powershell in de specified directories by you it doesn't show any message and no explorer window is opened.

    I am really confused, I'm tempted to just reinstall windows to be safe, even though I'm almost 100% sure nothing is compromised. Just to be on the safe side, but it is such a pain to reinstall everything.

    Kind regards,

    Rajiv

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-03-27T19:32:33+00:00

    Hi Paul,

    Thanks for the response, I ran the first scan already with my antivirus (EST NOD32 Antivirus) and it found nothing. After that I ran the microsoft tool and it found a trojan that was removed but I have had no alerts via any account that i have that I have been hacked. I still have the cmd issue that it opens explorer so I think its somehting else. Also the SFC /scannow command didn't find any integrity issues either.

    Here is a screenshot of the cmd shortcut. I already looked at this previously and it looks normal to me. Tried to directly open cmd from the windows/system32 folder and the same thing happend.

    Thanks a lot for your help, I really appreciate it.

    Kind regards,

    Rajiv

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-03-31T02:10:19+00:00

    Hi Rajiv,

    Awesome! We're glad that you're good.

    If you need any Windows 10 help, feel free to message us anytime & we'd be more than happy to help.

    Thanks for your time & please take care always.

    Stay healthy & happy. Cheers!

    Sincerely,

    Paul A.

    Independent Advisor

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-03-30T16:57:19+00:00

    Hi Paul, 

    Sorry I edited my post last night, but apparently I forgot to hit submit. Please read my last post. The problem has been resolved!

    Kind regards,

    Rajiv

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2020-03-28T06:05:05+00:00

    Hi Rajivrocks,

    Got it, thanks. What's the name of that trojan virus? Looks like it damaged your CMD.

    1. Go to Start > search regedit.msc > open "Registry Editor" > navigate to HKLM\Software\Microsoft\Command Processor > ensure the "AutoRun" settings is either empty. Do the same to HKLU\Software\Microsoft\Command Processor; ignore if you can't find this folder. Reboot your PC & test.
    2. If the above "AutoRun" file will not allow you to set an empty value, then reboot your PC to Safe Mode & delete the "AutoRun" file on both locations above.

    I hope this helps. Let me know how you go. Thank you!

    Sincerely,

    Paul A.

    Independent Advisor

    1 person found this answer helpful.
    0 comments No comments