Results 1 to 2 of 2

Thread: up or down

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    up or down

    How do I create a vbscript tool which can check whether a server/computer is up or down and put this information in a CSV-file???

  2. #2
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    I've never used VBScript or CSV files, but here's the idea:

    Find a ping utility and a gethostbyname utility. Use the gethostbyname function to resolve the domain name (e.g., "www.mulunkey.com") to an IP address (24.167.169.249). Ping the IP address. If the ping gets returned, write in your file that the website up. If the ping doesn't get returned at all, write in your file that the website is down.

    Best of luck!
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

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