0

Running explorer . opens an explorer windows

enter image description here

However, running code . for vscode opens code.cmd with a bunch of args.

enter image description here

Can anyone explain why this is happenining? and a possible rememdy?

8
  • What happens when you start (double-click) the file manually? Commented Oct 13, 2020 at 7:27
  • If cmd files are opening in Notepad its likely due to the default application configuration for that file type - support.microsoft.com/en-us/windows/… Commented Oct 13, 2020 at 8:37
  • @marsze pressing the start menu shortcut opens code normally Commented Oct 13, 2020 at 9:17
  • I was talking about the code.cmd file Commented Oct 13, 2020 at 9:23
  • 1
    check Get-Command code Commented Oct 13, 2020 at 10:16

1 Answer 1

1

Have you tried restarting it?

Restarting the machine (first in safe mode) and then normal mode solved the issue.

Note: Default apps (still) associates the .cmd extension with notepad but this doesn't prevent expected behavior.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.