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

  • Thread starter Thread starter SMichal
  • Start date Start date
S

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
 
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>
?

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.

Thank you...I'll try it out...Could say me please why shoudl I start it this
way ?
 
Back
Top