How to access shared folder(with username and password) in the windows service
<p>I'm currently trying to create a windows service in c#. The service needs to access a shared network drive and sql server. The problem is, I'm not allow to use a domain account to access the network drive and the drive will never join the domain. The only thing I have is the username and password of the drive.</p>

<p>I can't use impersonation since i can't have a domain account to access the drive.
Also, I can't use commandshell.</p>

<p>Is there any other magic way to make it work?</p>

<p>Thank you.</p>

<p>Sen</p>
