Results 1 to 7 of 7

Thread: [RESOLVED] [02/03] Getting output from shell

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    68

    Re: [02/03] Getting output from shell

    Hmm you're right.
    I'll try this.

    Thanks a bunch.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    68

    Re: [02/03] Getting output from shell

    Hmm, for some reason this didn't work:

    VB Code:
    1. Dim startInfo As New ProcessStartInfo(strCommand, strArguments)
    2.             Dim proc As New Process
    3.             startInfo.UseShellExecute = False
    4.             startInfo.RedirectStandardOutput = True
    5.  
    6.             [b]proc.Start(startInfo)[/b]
    7.  
    8.             Dim reader As StreamReader = proc.StandardOutput
    But this did:

    VB Code:
    1. Dim startInfo As New ProcessStartInfo(strCommand, strArguments)
    2.             Dim proc As New Process
    3.             startInfo.UseShellExecute = False
    4.             startInfo.RedirectStandardOutput = True
    5.  
    6.             [b]proc.StartInfo = startInfo
    7.             proc.Start()[/b]
    8.  
    9.             Dim reader As StreamReader = proc.StandardOutput

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width