../Msgboard/General customization/stupid registry question ...Home
zick - 04 Jan. 2007 - 03:58:

stupid registry question ...

don't laugh cause i can't get it to work ... maybe it can't be done or maybe i'm doing it wrong ...
anyways i want to add some verbs to some file formats that will launch a command line program (case in point flac'ing or lame'ing a wave file).
can i add this to a registry verb so i can just right click it and boom it does it ... it save me alot of time if possible.
thanx 4 feedback
 
04 Jan. 2007 - 12:45 grigri
Simplest way is to shell cmd.exe with the correct arguments; this only works for short scripts though:

Registry Script Sample (sets the archive flag by calling attrib):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT*shellarchive]
@="Set Archive Flag"

[HKEY_CLASSES_ROOT*shellarchivecommand]
@="cmd.exe /c attrib +a "%1""


If you want the console box to stick around afterwards, use /k instead of /c. If you want a more complicated script to run, run a batch script - you can pass all the parameters to it using %* (the parameters will be all the selected files)

Hope this helps!
 
Please log-in to post.
You need to be logged in to post. To log-in, or to register an account go -there.
 
Options
Login | Help | Profile | User list | Display last  
 days 


../Msgboard/General customization/stupid registry question ...Top

xhtml 1.1