What is done with the mapping that is retrieved? Output to the screen, something else?
What you've specified so far doesn't need VBS, can be done in fewer lines of simple .cmd/.bat scripting. if exist x:\ ( net use x:|find /I "remote name" ) else ( net use x: \\server\share ) Doesn't get much simpler. Carl From: Steve Kelsay [mailto:[email protected]] Sent: Friday, March 20, 2009 12:19 PM To: NT System Admin Issues Subject: Scrip Help please? I am looking for help writing a VBScript to 1. Detect whether a specified mapped drive exists 2. If so, retrieve the target mapping (if the X: drive is not mapped to \\server\shar <file:///\\server\share> e, then map it ) I have Googled and found lots of stuff, but nothing that does this. I can retrieve the drive letter and see if it exists, but where it is mapped to is eluding me. It has to be simple. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
