Results 1 to 7 of 7

Thread: [RESOLVED] [2005] Command Prompt

Hybrid View

  1. #1
    Addicted Member joe1985's Avatar
    Join Date
    Jun 2007
    Posts
    151

    Re: [2005] Command Prompt

    Here is some code I slapped together

    Code:
     
    Dim p As New Process
    Dim zztop As New ProcessStartInfo
    
            zztop.CreateNoWindow = True
            zztop.Arguments = "yahoo.com"
            zztop.FileName = "nslookup"
            zztop.RedirectStandardOutput = True
            zztop.UseShellExecute = False
    
            p.StartInfo = zztop
            p.Start()
    
            Dim stream1 As String = p.StandardOutput.ReadToEnd
            RichTextBox1.Text = stream1
    I think that will head you in the write direction at least, and you can probably figure out the rest.

    - Joe
    Last edited by joe1985; Oct 2nd, 2007 at 06:58 PM. Reason: for got Dim p As New Process

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