I'm assuming that when you invoke subl.exe
via an absolute path then it works.
> "C:\Program Files\Sublime Text 3\subl.exe"
Assuming the above works, then the location of subl.exe
can be added to the system path so that there is no need to specify the absolute path.
Go to Control Panel > System and Security > System > Advanced system settings
and add C:\Program Files\Sublime Text 3
to the PATH
environment variable.
Check that the PATH
variable does not already contain the path to subl.exe
so to avoid adding it twice.
You essentially are going to append ;C:\Program Files\Sublime Text 3
to the PATH
variable. Note the ;
which is a path separator.
You may need to restart Windows for the change to take effect.
See What are PATH and other environment variables, and how can I set or use them? for in depth information on PATH
and other environment variables in general.
subl.exe
, try adding your Sublime Text installation directory to your PATH. For security reasons, you shouldn't be adding anything tosystem32
. – Inexpensive