Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

mapping and unmapping a drive using net use

$
0
0
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.

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>