|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Startin process with an argument like <D:\CD\data.prc>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 Try this: Process.Start("C:\\Direct.exe", "\"<" + prozessFile + ">\""); How can I start a new process with an argument in this form <D:\cd\Data.prc>"SMichal" <michal.sodo***@trygon-softwareberatung.de> wrote in message news:ODWHJOp0GHA.4476@TK2MSFTNGP05.phx.gbl... ? string args1 = " <" + prozessFile + "> "; Process.Start("C:\\Direct.exe", args1); Ist this correct ? It works only under WINXP but not under Windows Serve 2003 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 > > < and > have special meaning (output redirection) at command prompt unless
enclosed in quotes. "SMichal" <michal.sodo***@trygon-softwareberatung.de> wrote in message Thank you...I'll try it out...Could say me please why shoudl I start it thisnews:eO2$Ezq0GHA.1588@TK2MSFTNGP02.phx.gbl... 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 > > |
|||||||||||||||||||||||