D*****n 发帖数: 363 | 1 I have user id and password to access a remote computer that opens up a
shared folder for me. I wanna write a program that logs onto it (also
running XP/2000/2003) and copy a few files back. What .Net apis to use
to access the remote computer? |
c**t 发帖数: 2744 | 2 impersonate? I didn't do that before..
【在 D*****n 的大作中提到】 : I have user id and password to access a remote computer that opens up a : shared folder for me. I wanna write a program that logs onto it (also : running XP/2000/2003) and copy a few files back. What .Net apis to use : to access the remote computer?
|
j********g 发帖数: 88 | |
D*****n 发帖数: 363 | 4
Turned out impersonate is the way to go. It's very delicate, though.
You have to set the parameters right, or it wouldn't work and you
are gonna spend a long time finding what goes wrong.
There're a few good articles on this here:
http://www.codeproject.com/useritems/User_Impersonation_in_Ne.asp?df=100&forumid=314226&exp=0&select=1592547#xx1592547xx
【在 c**t 的大作中提到】 : impersonate? I didn't do that before..
|
c**t 发帖数: 2744 | 5 I'm very glad it worked for you.
【在 D*****n 的大作中提到】 : : Turned out impersonate is the way to go. It's very delicate, though. : You have to set the parameters right, or it wouldn't work and you : are gonna spend a long time finding what goes wrong. : There're a few good articles on this here: : http://www.codeproject.com/useritems/User_Impersonation_in_Ne.asp?df=100&forumid=314226&exp=0&select=1592547#xx1592547xx
|