using windows service can we copy files from one computer to another computer C#.net ?

Posted by Harry on Stack Overflow See other posts from Stack Overflow or by Harry
Published on 2010-05-13T15:36:41Z Indexed on 2010/05/13 15:44 UTC
Read the original article Hit count: 137

Filed under:

I have one service that will create a text file to local machine and then need to copy the same file to another server .

I am using " File.Copy(SourceFilePath, TargetFilePath, true);" and getting an exception at the target file path "access denied. I am able to copy the files manually to that location ( TargetFilePath) .

any idea , what is going wrong ??

I don't have any network drive mapping with this target location.

Thanks in Advance

© Stack Overflow or respective owner

Related posts about c#