I have just started learning visual basic programming a few weeks ago. I have been trying to create a logon script that will automatically connect several network drives for the user.
(User groups are different OUs, and each OU is linked to a different batch file that loads the correct visual basic script, so students see student drives, teachers see teacher drives, and so on)
The batch file successfully calls the visual basic file. This batch file also disconnects any network drives left from a previous session. The visual basic file does map the network drives. However, it keeps saying drive letter already in use, or something along those lines.
How do y'all do network drive mapping? Anyone have any suggestions on how I can improve on my method to eliminate the error? Users keep emailing saying the computer has an error.
I attached the two files.
