如何从远程位置复制文件(.Exe)使用C#了解网络凭据? [英] How Can I Copy File(.Exe) From A Remote Location Knowing The Network Credentials Using C#?
本文介绍了如何从远程位置复制文件(.Exe)使用C#了解网络凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想访问一个远程位置,将一些文件(.exe)复制到我的本地计算机,我知道相同的网络凭据。我怎么能用C#做同样的事情?
P.S.该位置是一个共享的位置。如果我以管理员身份登录而不是使用域名登录,或者如果是第一次访问,则需要网络凭据。
请帮助!!!谢谢:)
Hi,
I want to access a remote location to copy some files(.exe) into my local machine and i know the network credentials for the same. How can i do the same using C#?
P.S. The location is a shared location. The network credentials are needed if i am logged in as administrator and not with a domain name or else if it is a first time access.
Please help!!!Thanks :)
推荐答案
这是一篇很好的文章,可以回答你的问题。
用于模拟用户的小型C#类
Here a nice article that answers your question.
A small C# Class for impersonating a User
这篇关于如何从远程位置复制文件(.Exe)使用C#了解网络凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文