On my Windows 10 system, when I open a regular terminal (cmd.exe), I cannot edit files using the subl command:

subl myfile.txt

The command does not do anything, I did not get any error message. However, when I opened the terminal as administrator, then subl works as expected. Is there a way for subl to work in non-administrator terminal?

My Environment

  • Windows 10
  • C:\Program Files\Sublime Text 3\subl.exe is in the path in both terminals
  • where is the txt file located? if also in C:\Program Files\ it is by design, that you need admin permissions to write the file – magicandre1981 Dec 29 '17 at 15:50
  • myfile.txt is in my home directory where I have write permission. – Hai Vu Dec 29 '17 at 16:02
  • What is the error message? – DavidPostill Dec 29 '17 at 20:34
  • No error message, it does not do anything, a no-op – Hai Vu Dec 29 '17 at 21:15

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.