View Single Post
  #3 (permalink)  
Old 04-14-2008, 05:50 AM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: calling cmd.exe file with arguments


"czechboy" <oldrich.svec@centrum.cz> wrote in message
news:2d4d3b6f-08f3-4e01-aa20-530437222c37@f36g2000hsa.googlegroups.com...
> Hi,
> I have the following code:
>
> C:\WINDOWS\system32\cmd.exe /C "C:\Program Files\FindAndRunRobot
> \Plugins\TodoTXT\dist\todo.exe a test"
>
> I want to call todo.exe with a parameter "a test". How to do it
> correctly?
> Thank you
> Oldrich Svec


You have a couple of options:

- The simple way:
"C:\Program Files\FindAndRunRobot\Plugins\TodoTXT\dist\todo.ex e" "a test"
(There is no need to invoke an extra Command Processor)

- Making life harder for yourself:
C:\WINDOWS\system32\cmd.exe /C "C:\Program
Files\FindAndRunRobot\Plugins\TodoTXT\dist\todo.ex e" "a test"


Reply With Quote

 
Old 04-14-2008, 05:50 AM