I have tried many different ways to accomplish this however to no avail. here is my code.
Dim runit As Shell
Private switches As List
switches.Initialize
switches.Add("/user:johns")
switches.Add("password")
runit.Initialize("net use J:",$"\\example\windows\share"$,switches)
runit.RunSynchronous(-1)
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.