Home All Groups Group Topic Archive Search About

Startin process with an argument like <D:\CD\data.prc>

Author
7 Sep 2006 3:37 PM
SMichal
How can I start a new process with an argument in this form <D:\cd\Data.prc>
?

string args1 = " <" + prozessFile + "> ";

Process.Start("C:\\Direct.exe", args1);


Ist this correct ? It works only under WINXP but not under Windows Serve
2003

Author
7 Sep 2006 5:15 PM
Siva M
Try this: Process.Start("C:\\Direct.exe", "\"<" + prozessFile + ">\"");

"SMichal" <michal.sodo***@trygon-softwareberatung.de> wrote in message
news:ODWHJOp0GHA.4476@TK2MSFTNGP05.phx.gbl...
How can I start a new process with an argument in this form <D:\cd\Data.prc>
?

string args1 = " <" + prozessFile + "> ";

Process.Start("C:\\Direct.exe", args1);


Ist this correct ? It works only under WINXP but not under Windows Serve
2003
Author
7 Sep 2006 6:38 PM
SMichal
Thank you...I'll try it out...Could say me please why shoudl I start it this
way ?

Show quote
"Siva M" <shiva***@online.excite.com> schrieb im Newsbeitrag
news:O$aJuEq0GHA.4956@TK2MSFTNGP04.phx.gbl...
> Try this: Process.Start("C:\\Direct.exe", "\"<" + prozessFile + ">\"");
>
> "SMichal" <michal.sodo***@trygon-softwareberatung.de> wrote in message
> news:ODWHJOp0GHA.4476@TK2MSFTNGP05.phx.gbl...
> How can I start a new process with an argument in this form
> <D:\cd\Data.prc>
> ?
>
> string args1 = " <" + prozessFile + "> ";
>
> Process.Start("C:\\Direct.exe", args1);
>
>
> Ist this correct ? It works only under WINXP but not under Windows Serve
> 2003
>
>
Author
8 Sep 2006 5:51 PM
Siva M
< and > have special meaning (output redirection) at command prompt unless
enclosed in quotes.

"SMichal" <michal.sodo***@trygon-softwareberatung.de> wrote in message
news:eO2$Ezq0GHA.1588@TK2MSFTNGP02.phx.gbl...
Thank you...I'll try it out...Could say me please why shoudl I start it this
way ?

Show quote
"Siva M" <shiva***@online.excite.com> schrieb im Newsbeitrag
news:O$aJuEq0GHA.4956@TK2MSFTNGP04.phx.gbl...
> Try this: Process.Start("C:\\Direct.exe", "\"<" + prozessFile + ">\"");
>
> "SMichal" <michal.sodo***@trygon-softwareberatung.de> wrote in message
> news:ODWHJOp0GHA.4476@TK2MSFTNGP05.phx.gbl...
> How can I start a new process with an argument in this form
> <D:\cd\Data.prc>
> ?
>
> string args1 = " <" + prozessFile + "> ";
>
> Process.Start("C:\\Direct.exe", args1);
>
>
> Ist this correct ? It works only under WINXP but not under Windows Serve
> 2003
>
>

AddThis Social Bookmark Button