in reply to Checking status of Network Mapped Drives

Updated
Hi ,

Have you tried letting the OS do the work and use (pun intended:-) the net use command (http://www.cae.wisc.edu/site/public/?title=nt4netuse) in backticks and parsing the output ?? It already 'knows' what drives should & shouldn't be mapped (c/w their status) and hence doesn't hang around...well not much by Windoze standards.

Just a thought ...

At last, a user level that overstates my experience :-))