Question Locked

Trying to add a varible while mapping a drive

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am using a vbscript for logins, but I am having a problem tryinig to use a username varible with the MapDrive function. Here is the code I am using:

MapDrive "J:", "\\", "\dev" & oNet.UserName

What I want to do is map the drive to a specific users folder.

2 replies

by terry_angie

MapDrive: J: \\servername\username\folder name.....(make sure the folder name is spelled and formatted the same.)

This discussion is closed to new replies.