Page 1 of 1 1
Topic Options
#213055 - 2017-12-12 10:45 PM detect disconnected drive mappings
xempa333 Offline
Just in Town

Registered: 2017-10-17
Posts: 2
Loc: New Zealand
Hi is there a way to detect if a mapped drive is disconnected e.g. red X.
What I am hoping to achieve is that if Z: drive is disconnected then it will immediately proceed to doing something else.

I'm trying to avoid the wait time to determine if z drive is disconnected or not.

I hope this makes sense ?
Any help on this would be greatly appreciated
 Code:
if exist('Z:')
  ? "Z: drive exists"
Exit
else
? "Z: drive doesn't exist"
? "then do other stuff here"
end if



Edited by Arend_ (2017-12-13 11:15 AM)
Edit Reason: Please use code tags

Top
#213057 - 2017-12-13 01:05 AM Re: detect disconnected drive mappings [Re: xempa333]
xempa333 Offline
Just in Town

Registered: 2017-10-17
Posts: 2
Loc: New Zealand
All figured out thanks-
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.022 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org