Net USE command to VB

adrieldeguzman used Ask the Experts™
Does anyone know a VB script that will do the same as this dos command:  

net use h: \\FilesServer\home\%username%

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Set objNetwork = CreateObject("WScript.Network") 
objNetwork.MapNetworkDrive "H:", "\\FilesServer\home\" & objNetwork.UserName

Open in new window

Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial