Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help on mapped drives

Status
Not open for further replies.

revvinghigh

Programmer
Aug 17, 2004
14
US
how to identify what drives the user is mapped to?

thanks!
 
You could use the drivetype() function to identify valid drives.

Eg:
dimension marray(26)
mcount = 0
for i = 67 to 90 &&check for drives c: to z:
x = drivetype(chr(i))
if x = 3 or x = 4 &&hard drive or removable drive/network drive
mcount = mcount + 1
store chr(i)+':' to marray(mcount) &&store valid drives to marray
?marray(mcount) &&display drive
endif
endfor


 
Enumerate Available Shares and Current Mapping faq184-4449

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top