Using a network drive from a Windows Service
Posted on 2004-03-22
Is it possible to map a network drive and then have it available to a service? The service does not support UNC paths and it can't map the drive itself.
I have tried to log in, map the drive and then start the service as the logged-in user. But the drive is not available to the service.
Of course I want the service to start automatically at system startup, but if I can get the above to work, that can probably be solved by mapping and starting from a batch file that runs as a scheduled task on system startup.