Windows – “wrong path” after running command via address bar in explorer

windows 10windows-explorer

after I run a command via the address bar in an explorer window, the path shown in the address bar will point to the command and not to the current folder

is there any known fix how to prevent this?

steps to reproduce:

  1. open explorer
  2. place cursor into address bar
  3. run command (e.g cmd)
  4. place cursor into adress bar -> path will point to C:\Windows\System32\cmd.exe

Best Answer

When any command is entered in the adress bar of the explorer the command is executed in the CMD in the default work directory of user's files.

So instead of typing the command in address bar, right click while holding the shift and select "open poweshell window here" to open a poweshell in the opened directory and run the command there

Related Question