I use to be able to use the net use command line statement to map and unmap drives during my form load procedure but I cannot remember how I did this
net use x: \\server\sharefolder /user: myID myPass
net use x: /delete
I cannot remember how I was able to incorporate these into the code to map and unmap drives.
My end result is to be able to map a drive that the program needs in order to access a database.
Then when the user closes the form, I want to unmap the drive.
net use x: \\server\sharefolder /user: myID myPass
net use x: /delete
I cannot remember how I was able to incorporate these into the code to map and unmap drives.
My end result is to be able to map a drive that the program needs in order to access a database.
Then when the user closes the form, I want to unmap the drive.