Dámaso,
Check the documentation for the WindowsIdentity class, specifically, the
Impersonate method. There is code there that will show you how to login as
another user. Once you do this, you can login as a user that has the
appropriate permissions, and then perform the copy operation.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"Dámaso Velázquez Álvarez" <dv********@gma il.com> wrote in message
news:11******** *************@i 39g2000cwa.goog legroups.com...
Hi,
I need to copy files to a shared folder protected by username/password.
I don't now autenticate me in the server to copy the files.
Do I need to use the credentials to do it?
How can i do it?
Anybody can help me?
Thanks.