Get your own customer support community
 

Access is denied when calling VBScript (.vbs) from the windows context menu

I've written this handy script (for myself, at the moment) that works of a single file. I want to call it from the windows context menu by right clicking the file I want it to process.

Now, i've added a new key under HKEY_CLASSES_ROOT\*\Shell (because I want it to work on *any* file) and have added the following sub-key

(Default) = "%windir%\system32\wscript.exe" "D:\myscripts\myscript.vbs" "%1"

I can now see my new menu item whenever i right-click any file (yay!) but when I click it, I get an error message "Access is denied." - what am i doing wrong or missing?
 
silly I’m silly
Inappropriate?
1 person has this question

User_default_medium