|
-
Jan 22nd, 2000, 08:30 AM
#1
Thread Starter
New Member
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
-
Jan 22nd, 2000, 10:05 AM
#2
Hyperactive Member
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 -
-
Jan 22nd, 2000, 10:13 AM
#3
Thread Starter
New Member
ya, i knew bout it, but is there a way to pump the data that the exe gets into my vb text ****?
-
Feb 3rd, 2000, 01:44 AM
#4
New Member
Let me know if you figure it out. Maybe you can import from perl or use cgi.
-
Mar 11th, 2000, 07:12 AM
#5
New Member
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 !
-
Jan 9th, 2003, 03:50 PM
#6
Lively Member
try this code here!!
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
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
|