HTA as target of context menu in Windows Explorer


B

Bruce Hensley

I have successfully added VBS files to the Windows Explorer context menus
for different file classes by making appropriate registry settings.

I cannot figure out how to make this work when the target application is an
HTA and the class is Folder or Directory (I haven't tried HTAs with other
classes).

I have tried constructs like this ...

HKCR\Directory\shell\myHTA\command (Default,REG_SZ):

%SystemRoot%\mshta.exe "\\myserver\myshare\myfolder\myHTA.hta" "%1"

When I rightclick on a directory and choose myHTA, I get an error like:

Can't find the file 'full path of folder here' (or one of its components)
....

Any help would be appreciated.

Thanks,
Bruce
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top