Sorry I can't be more specific, but I'm not that familiar with batch programming.
To return a value, here is the only way that comes immediately to my mind (this is assuming there is a way to pass arguments to batch programs.. I really don't know):
- Write a batch (BAT) program which pings and writes the result to a text file (or better yet, have the program delete, say "Pingyes.txt" if it exists, then ping, then create "Pingyes.txt" if the Ping was successful).
- Call the shell program Doug mentions, except have it call the batch program, with the IP address as an argument (hopefully).
- Then:
dim bolPingSuccessful as boolean
const strPingIndicatorFile = "path\Pingyes.txt"
bolPingSuccessful = dir(strPingIndicatorFile) <> ""
Hope that was useful.. I don't know where you would look to find information on how to write the batch program, though.
Katie