HTA as target of context menu in Windows Explorer

  • Thread starter Thread starter Bruce Hensley
  • Start date Start date
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
 
Back
Top