Process.Start

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Sm9obg==?=

    Process.Start

    I guess the following code runs but never creates the info file. Can anyone
    help me?
    Thanks.

    Process proc = new Process();
    proc.StartInfo. FileName = "IPConfig.e xe";
    proc.StartInfo. Arguments = "ip_config_info .txt";
    proc.Start();
  • =?Utf-8?B?Sm9obg==?=

    #2
    RE: Process.Start

    Solved. Thanks.

    "John" wrote:
    I guess the following code runs but never creates the info file. Can anyone
    help me?
    Thanks.
    >
    Process proc = new Process();
    proc.StartInfo. FileName = "IPConfig.e xe";
    proc.StartInfo. Arguments = "ip_config_info .txt";
    proc.Start();

    Comment

    • Family Tree Mike

      #3
      Re: Process.Start

      It could be to use cmd.exe as the filename argument, and "/c ipconfig.exe >
      ip_config_info. txt" as the arguments property, or, to catch the output via
      the StandardOutput property. But John should say which he used.


      "Michael B. Trausch" <mike@trausch.u swrote in message
      news:2008101519 2935.0397bc63@z est...
      On Wed, 15 Oct 2008 15:36:00 -0700
      John <John@discussio ns.microsoft.co mwrote:
      >"John" wrote:
      >>
      I guess the following code runs but never creates the info file.
      Can anyone help me?
      Thanks.
      >
      Process proc = new Process();
      proc.StartInfo. FileName = "IPConfig.e xe";
      proc.StartInfo. Arguments = "ip_config_info .txt";
      proc.Start();
      >>
      >Solved. Thanks.
      >>
      >
      What was the solution, out of curiosity?
      >
      --- Mike
      >
      --
      My sigfile ran away and is on hiatus.
      >

      Comment

      Working...