Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2004
    Posts
    3

    Question Unanswered: ping with information from access

    hello,

    i have an access form with one field that has an domain name in it (domain.com). i have 3 buttens in that form what must do the following:

    button1: ping domain.com and give the result (may just been an dos box)
    button2: ping www.domain.com and give the result
    button3: tracert domain.com and give the result

    ping and tracert are dos commands. does annyone know how i can get this to work??

    thanx allot!

  2. #2
    Join Date
    Jan 2004
    Location
    Toronto, Canada
    Posts
    259
    You might want to look into shell applications; that way, maybe you start the msdos prompt and supply it with criteria, e.g, ping domain.com

    i dont know whether you wanted the ping and tracert info in a field or textbox, or do u just want the command.com to pop up?

  3. #3
    Join Date
    Jan 2004
    Posts
    3
    Originally posted by Jerrie
    You might want to look into shell applications; that way, maybe you start the msdos prompt and supply it with criteria, e.g, ping domain.com

    i dont know whether you wanted the ping and tracert info in a field or textbox, or do u just want the command.com to pop up?
    i want the command.com open and the aut exec ping <domain>

    than i must view the information if this is correct

  4. #4
    Join Date
    Jan 2004
    Location
    Toronto, Canada
    Posts
    259
    use the shell Environ function
    Shell Environ("ComSpec") & " /k " & "ping www.domain.com", vbNormalFocus

    u can replace the ping blah blah with tracert or other normal commands in commandcom

    the comspec just makes sure it finds the right command.com or cmd.exe depending on ur system

  5. #5
    Join Date
    Jan 2004
    Posts
    3

    Thumbs up

    thanx allot, this is working

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •