|
-
Jun 7th, 2009, 01:20 PM
#1
Thread Starter
Junior Member
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?
-
Jun 7th, 2009, 01:21 PM
#2
Re: How to have text automatically filled when the process starts CONTINUED
My.Computer.Keyboard.SendKeys("net users" & textbox1.text & vbCrLf)
-
Jun 7th, 2009, 02:00 PM
#3
Addicted Member
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")
-
Jun 8th, 2009, 02:21 PM
#4
Thread Starter
Junior Member
Re: How to have text automatically filled when the process starts CONTINUED
 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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|