Sublime Forum

WinError 5 -Access is denied

#1

Hello,
I am trying to launch an html document but I am getting [WinError 5] Access is denied.

I am using windows and this is my build.

{
“cmd”: [“C:\Program Files (x86)\Google\Chrome\Application”, “$file”]
}

This is the sample code I am trying:

/*This will include other keyboard characters*/ I am Title

"yo"

and this is the error:

[WinError 5] Access is denied
[cmd: [‘C:\Program Files (x86)\Google\Chrome\Application’, ‘G:\Downloads 2016\Code\Projects\Tribute Page #1\index.html’]]
[dir: G:\Downloads 2016\Code\Projects\Tribute Page #1]
[path: C:\ProgramData\Oracle\Java\javapath;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Java\jdk1.8.0_20\bin;C:\Program Files\Java\jdk1.8.0_20\bin;C:\Users\xasuma\AppData\Roaming\Dashlane\4.0.1.98943\bin\Firefox_Extension{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components;C:\Users\xasuma\AppData\Roaming\Dashlane\4.1.0.99957\bin\Firefox_Extension{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components]
[Finished]

Please help.

0 Likes

#2

you are missing \Chrome.exe in your cmd. Plus maybe the \ chars have to be doubled up (escaped)

0 Likes

#3

That was it. I was missing the Chrome.exe
Thank you very much! The guides I saw put the directory leading up to the file, but not the file itself.

0 Likes