File.Copy question

  • Thread starter Thread starter Damir
  • Start date Start date
D

Damir

Hallo C# Community

I have a small Problem with my service. I tried to write service which
copies actual files to all computer in my network. So it will work fine if
the Application isn't a windows service. In windows service a user isn't
signed on, so i don't have access to any network resorce, and i'm unable to
copy those files.

How to log in on the network computer to be able to copy files using UNC
paths on the network machine?

Thanks in advance


Damir
 
Create a user account specific for the service and have the service use that
account (under Run As) and then grant write permissions to the necessary
paths it needs to copy files to.
 
Back
Top