Results 1 to 6 of 6

Thread: traceroute

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    9

    Post

    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

  2. #2
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post

    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 -

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    9

    Post

    ya, i knew bout it, but is there a way to pump the data that the exe gets into my vb text ****?

  4. #4
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Post

    Let me know if you figure it out. Maybe you can import from perl or use cgi.

  5. #5
    New Member
    Join Date
    Mar 2000
    Location
    Carleton Place, Ontario, Canada
    Posts
    1

    Post

    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 !

  6. #6
    Lively Member
    Join Date
    Dec 2002
    Posts
    109

    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
  •  



Click Here to Expand Forum to Full Width