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.
"X" wrote:
> 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.
>
|