#51217 - 2000-08-29 07:59 PM
Ping Server to see it its up!
|
Anonymous
Anonymous
Unregistered
|
Anybody know how I would go about pinging a server and then if its up map a drive on it, and if not then skip the mapping? I can get the if else stuff but I don't know how to get the ping reply into the script?
|
|
Top
|
|
|
|
#51218 - 2000-08-29 10:55 PM
Re: Ping Server to see it its up!
|
Jack Lothian
MM club member
   
Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
|
I have never tried this but shelling out toping ip > file.txt might work. Then read the file. There are a number of DOS utilities you could use to parse this file or search it but a full kix version might also be possible. But might not it be more direct to just attch then test if the attach was successful. [This message has been edited by JackLothian (edited 29 August 2000).]
_________________________
Jack
|
|
Top
|
|
|
|
#51219 - 2000-08-30 06:18 PM
Re: Ping Server to see it its up!
|
Anonymous
Anonymous
Unregistered
|
Well the bigest issue is time, I don't want to wait for 30sec while I try and connect to the server?
|
|
Top
|
|
|
|
#51221 - 2000-08-30 07:27 PM
Re: Ping Server to see it its up!
|
Anonymous
Anonymous
Unregistered
|
Well I want the timeout to be short like 5 seconds, I can't have the users wait for 30seconds while the login script tries to map a drive! I am not sure what you mean about the loop thing??
|
|
Top
|
|
|
|
#51225 - 2000-08-31 06:06 PM
Re: Ping Server to see it its up!
|
Anonymous
Anonymous
Unregistered
|
That worked great on both NT/2000 and 98. Thanks I have been working on this for days!
|
|
Top
|
|
|
|
#51229 - 2000-09-05 04:44 PM
Re: Ping Server to see it its up!
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|