PDA

View Full Version : mapping a share in vbs



afiedreke
11-12-2005, 02:23 PM
ok. i know how to map a drive in vbs:
set wshnet=wscript.createobject("wscript.network")
wshnet.mapnetworkdrive"x: ","\\servername\mapname"

but what i don't know, is how can i add a different user acount in this script( an admin account) that uses its credentials to verify acces to the share. als i would like to build in a verify to see if the mapping already exists.
thanks for the help.