How to add a context menu option for AVI files?

X

X

I'd like to add a right-click command to AVI files. The goal would be a
right-click command that would set the 'hidden' attribute of the file.
I need help in setting up the 'where' in the registry and wouldn't mind
input in how to phrase the command.


I'm guessing that 'attrib +h %1' would do the trick (I don't care if a CMD
window shows up for a split-second)

I've tried creating one at:
HKEY_CLASSES_ROOT\AVIFile\shell\hide\command
with a reg_expand_sz paralled from the nearby ones of:
attrib +H "%L"
Unfortunately, this doesn't even show up on a right-click menu.




My system is running Vista Ultimate, should it matter.
 
G

Guest

Well, for a start you could try replacing:
attrib +H "%L"
by:
C:\WINNT\system32\cmd.exe /c attrib +H "%L"
or
C:\WINNT\system32\cmd.exe /c "attrib +H "%L""

and I am still not sure if that registry hack is the only one needed.
 

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