I have a network drive already mapped. But I want to create a batch file that starts after the startup is complete and reconnect to the mapped network drives. So far I have seen commands like: ne...
superuser.com
I have an Access form that runs some Excel Code that pulls data from a DB on another network drive protected by a user name and password (the reasons for this s
www.tek-tips.com
The first link shows SHELL commands you could issue to do the reconnect.
The second link does a reconnect in VBA. The properties you want for "reconnect at sign-in" might be exposed from the WScript library. The article shows the reconnect but not how to set the properties.
But I have a logic question. Why do you want to bother with VBA for this? It would seem to me that you don't NEED to use VBA because the drive would reconnect at subsequent sign-in anyway? In which case this code wouldn't run, or would actually lead to a conflict, and its original use would represent a one-off usage. Is a one-off that important?