Results 1 to 4 of 4

Thread: How to have text automatically filled when the process starts CONTINUED

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    How to have text automatically filled when the process starts CONTINUED

    This is new to this topic. I want a prompt. Like
    Code:
    Process.Start("cmd.exe")
    My.Computer.Keyboard.SendKeys("net users" & vbCrLf)
    If you enter "net users" in the command prompt all the local users on the pc appear. I want a textbox in my app, that if a user types in "kyle", and click the button, the first code I gave starts, and after "net users" the text in the textbox is there as well, so it will look like this:

    net users Kyle

    A little help?

  2. #2

    Re: How to have text automatically filled when the process starts CONTINUED

    My.Computer.Keyboard.SendKeys("net users" & textbox1.text & vbCrLf)

  3. #3
    Addicted Member Mal1t1a's Avatar
    Join Date
    Mar 2008
    Posts
    157

    Re: How to have text automatically filled when the process starts CONTINUED

    An Easier way would be: Process.Start("cmd.exe", "/c net user " & TextBox1.Text & " & pause")

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Re: How to have text automatically filled when the process starts CONTINUED

    Quote Originally Posted by formlesstree4 View Post
    My.Computer.Keyboard.SendKeys("net users" & textbox1.text & vbCrLf)
    Ok. I thought of this but I thought it would actually say, "net users textbox1.text" I will try this...

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