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?
Re: How to have text automatically filled when the process starts CONTINUED
My.Computer.Keyboard.SendKeys("net users" & textbox1.text & vbCrLf)
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")
Re: How to have text automatically filled when the process starts CONTINUED
Quote:
Originally Posted by
formlesstree4
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...