Does anyone know how to go about mapping a network drive within code? I am having problems losing the mapping of my network drive, so I wanted to map it with code.
Are you sure you want to do this in CBuilder ?
I would use a batch file with this command
net use h: \\server\share <password> /user:<domain>\<username>
In C++ you could use the NetUseAdd API, I have never used it myself. I hope it is of any help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.