2
Answers

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

Photo of rahul rastogi

rahul rastogi

16y
9.6k
1
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)

0
Photo of narasimman g
NA 148 274.8k 14y
Hi mahesh

i was peeping everywhere !!
thanks for the info
i have written bulk of coding in treeview after select
it wont be good!!

I wil try something else if solution is good i wil post here

Thanks bro
0
Photo of Mahesh Chand
2 286.9k 123.7m 14y
Windows Forms TreeView does not have this feature. Only thing you can implement is, select the item. If you must, WPF TreeView can do this for you.