Click to See Complete Forum and Search --> : traceroute
dephcon
Jan 22nd, 2000, 07:30 AM
i was curious if any of ya'llz knew how to perform a traceroute. i have a shell at trojan.neta.com. i jest need a general o'er view of how to send commands to it kuz all i receive is garbage when i try. dont tell me everything, i want to have a challenge.
thanks fer ya help
dephcon
razzaj
Jan 22nd, 2000, 09:05 AM
i dont know if that is what u are looking for ... but in windows there is an executable called "tracert.exe"
syntax : tracert ipaddress or website
------------------
- regards -
- razzaj -
dephcon
Jan 22nd, 2000, 09:13 AM
ya, i knew bout it, but is there a way to pump the data that the exe gets into my vb text ****?
N26
Feb 3rd, 2000, 12:44 AM
Let me know if you figure it out. Maybe you can import from perl or use cgi.
bedfordpark
Mar 11th, 2000, 06:12 AM
I shell to dos, then pipe the results into a file, then close dos then read the file output into my program.
If you know of a way of reading directly into VB as return value, please let me know !
nvc944
Jan 9th, 2003, 02:50 PM
Private Sub tracert_Click()
If txtip.Text = "" Then
MsgBox "Please enter an IP address bellow.", 48, "No IP address"
Else
On Error Resume Next
Dim PingCommand As String
Dim Ip As String
Shell "Command.com /c tracert " & txtip.Text & " > c:\test.txt", vbHide
Open "c:\test.txt" For Input As #1
PingCommand = Input$(LOF(1), #1)
Close #1
info.Text = PingCommand
Kill "c:\test.txt"
End If
End Sub
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.