| Re: calling cmd.exe file with arguments Do you want the command window to stay open?
cmd.exe /C Carries out the command specified by string and
then terminates
cmd.exe /K Carries out the command specified by string but
remains
Your quote is in the wrong place. Only quote the path, not
switches.
C:\WINDOWS\system32\cmd.exe /C "C:\Program Files\FindAndRunRobot
\Plugins\TodoTXT\dist\todo.exe" a test
ju.c
"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 |