Hi,I have a Windows Service that connects to remote drives using UNC paths (no drive letters). I make the connection with the remote drive in my OnStart procedure. I run the service with my username so that the service can have enough privelege to do its job. My questions are:1. What happens...
I have to apologize I didn't post this sooner. This past weekend I decided to give it my last try and I still couldn't verify the connection using command console NET USE command (the connection sought was not listed). Frustrated, I went ahead and tried to open a file on the remote drive, and...
Hi John,
Thanks again for the reply. I did try to logon as local system with the option to interact with desktop enabled. But it's still not working for me. I use NET USE to see all the network connections to my machine and it is not there. Do you think I have to use WMI? What's the...
John, Thank you for your reply. I'm following your first advice on using Win32 API. I'm using WNetAddConnection2 to connect to the network drives with the following NETRESOURCE:
nr = New NETRESOURCE
nr.lpRemoteName = UNCPath
nr.lpLocalName = Nothing<-----I don't want a drive letter...
I am coding a Windows Service application in VB.NET that needs to map/mount multiple network drives using UNC path in its OnStart procedure so I can access the drives later. Normally I use NET USE to map the network drives to be used in my Win32 application and it works. But when I tried the...
Hello,
I would like my application to verify if another one of my application is currently running or not. Both programs are Win32 applications. The two applications are running on two different computers on the network. Please point me to a direction so I can start reading/researching more...
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.