System.Diagnostics.Process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nospam

    #1

    System.Diagnostics.Process

    Hi,



    How can I have more than one argument in this statement?

    Adding a second one gets an error.

    Process myProcess = Process.Start(" ABC.exe", "arg1");


  • Ralph Gerbig

    #2
    Re: System.Diagnost ics.Process

    Hi,
    I'm not certain sure but this should work

    Process myProcess = Process.Start(" ABC.exe", "-arg1 -arg2 -arg3");
    or
    Process myProcess = Process.Start(" ABC.exe", "/arg1 /arg2 /arg3");

    --
    Mit freundlichen Gruessen - Regards

    Ralph Gerbig
    ikea.ralph@web. de



    Comment

    • Buczo

      #3
      Re: System.Diagnost ics.Process

      Try this:
      Process myProcess = Process.Start(" ABC.exe", "arg1 arg2 arg3 ... argN");

      U¿ytkownik "nospam" <hello@hotmail. com> napisa³ w wiadomo¶ci
      news:KNudnTs0ZO qmoOqiRVn-sQ@giganews.com ...[color=blue]
      > Hi,
      >
      >
      >
      > How can I have more than one argument in this statement?
      >
      > Adding a second one gets an error.
      >
      > Process myProcess = Process.Start(" ABC.exe", "arg1");
      >
      >[/color]


      Comment

      Working...