Move a file accross a network in C# using different credentials
Posted on 2009-05-15
I have a windows service that is polling a local folder for a particular criteria of file, when it finds it, it should then move the file to a network share on another computer.
The local machine account (which the service runs under) is not able to access that share, nor can the service be run by another account, it must be run under the local machine account.
I want to be able to specify domain user credentials for the service to be able to move the file to the network share.
Can anyone help?