Click here to Skip to main content
15,913,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi there, i have been trying to type commands into cygwin using vb, the code is:

VB
Shell("C:\cygwin\Cygwin.bat")
SendKeys.Send("tracert -h " & _h & " " & domain.Text & " > temp" & i + 1 & ".txt")


but the problem is that i always need to press "enter" so that cygwin runs "processes" the trace route command,so am asking for the code which perform "enter" in vb so that the command will be executed through the code.
Posted
Updated 21-Apr-12 9:02am
v2

1 solution

 
Share this answer
 
Comments
Ja-lol 22-Apr-12 3:03am    
this was really helpfull i was typing it wrong i was typing
SendKeys.Send("(ENTER")
where i had to use:
SendKeys.Send("{ENTER"})
Nelek 22-Apr-12 8:19am    
Glad it helped you :)
VJ Reddy 23-May-12 23:25pm    
Good reference. 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900