launching a command line app from a registry verb ...

D

dr.zick

i's like to add a verb to a couple of my file classes that will launch
cmd.exe and run a command ... i was wonderring if i could store the
command in the registry string for that verb. here's an example of
what i want to do: i do alot of digital audio conversion and have alot
of command prompt converters and would like to make a verb for some of
the mundane operations.
i would guess the verb would look something like this:
%SYSTEMROOT%\cmd.exe /c executable -commandSwitch %1

but this doesn't seem to work ... is it a simple typo or is this
impossible
ant feedback is appreciated

-z
 
R

Ramesh, MS-MVP

I guess it should work. I tested with another application (cmd.exe /c notepad %1) and the file name argument is passed correctly. What error do you get?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


i's like to add a verb to a couple of my file classes that will launch
cmd.exe and run a command ... i was wonderring if i could store the
command in the registry string for that verb. here's an example of
what i want to do: i do alot of digital audio conversion and have alot
of command prompt converters and would like to make a verb for some of
the mundane operations.
i would guess the verb would look something like this:
%SYSTEMROOT%\cmd.exe /c executable -commandSwitch %1

but this doesn't seem to work ... is it a simple typo or is this
impossible
ant feedback is appreciated

-z
 
A

Ayush

Replied to [[email protected]]s message :
i's like to add a verb to a couple of my file classes that will launch
cmd.exe and run a command ... i was wonderring if i could store the
command in the registry string for that verb. here's an example of
what i want to do: i do alot of digital audio conversion and have alot
of command prompt converters and would like to make a verb for some of
the mundane operations.
i would guess the verb would look something like this:
%SYSTEMROOT%\cmd.exe /c executable -commandSwitch %1

but this doesn't seem to work ... is it a simple typo or is this
impossible
ant feedback is appreciated


Try :
%SYSTEMROOT%\cmd.exe /c executable -commandSwitch "%1"
 

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