Copying files from one network path to another network path in Window Service

Jun 19 2008 5:50 AM
Hi,

I want to copy files from one network path to another network path through windows serivce.

I am impersonating the user but it works only for one network path at a time. If I try to impersonate another user the first one becomes invalid.

Is there a way through which we can impersonate two users simulateneously.

I know other way is that I copy file from source network path to local system and then copy it from local system to destination network path i.e impersonating one user at a time but there are other things in my code which will make this too complicated.

I would really appreciate if anybody can help me on this.


Regards,
Rahul Rastogi

Answers (2)