连接到另一台电脑 [英] Connect to another pc

查看:136
本文介绍了连接到另一台电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

连接到另一台PC
我有另一台PC的用户名和密码,我想从我的PC连接到该PC.如何通过编程c#或vb.net或Delphi来做到这一点?

Connect to another pc
I have username and password of another pc and I want to connect to that pc from my pc. How can I do this by programming c# or vb.net or Delphi?

推荐答案

不,您没有其他PC的用户名和密码-PC没有拥有他们.不只是连接".这个问题是不正确的. 浏览器"无关紧要.

这完全取决于您在另一台PC"上运行的内容.您需要运行两个应用程序(可以是服务,通常是其中的一个:在一台和另一台PC上.作为最简单的选择,您可以在其中一台PC上共享一些目录(并且您将需要一些用户名和密码).远程桌面又如何呢?

对于初学者,请阅读以下内容:
如何将byte []发送到另一台PC [ ^ ],
在局域网上与两个Windows应用程序进行通信. [ ^ ].

当您知道要知道什么时问一个问题.现在,你不知道.

-SA
No, you don''t have username and password of another PCs — PCs do not have them. There is no just "connect". This question is incorrect. "Browser" is irrelevant.

It all depends on what you''re running on the "other PC". You need to run two applications (can be services, usually one of them: on one and on another PC. As the simplest option you can share some directories on one of the PCs (and than you will need some username and password). And how about Remote Desktop — yet another thing?

For starter, read this:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

Ask a question when you know what do you want to know. Right now, you don''t.

—SA


您可以使用WMI来监视远程计算机上的硬件和软件. .NET Framework中WMI的远程连接通过ManagementScope对象完成.使用System.Management命名空间中的类进行远程连接使用DCOM作为基础远程机制. WMI远程连接必须符合模拟和身份验证的DCOM安全要求.
看一下有-[如何:连接到远程计算机] [ ^ ]).
you can use WMI it is intended to monitor the hardware and software on remote computers. Remote connections for WMI in .NET Framework are accomplished through the ManagementScope object Connecting remotely using classes in the System.Management namespace uses DCOM as the underlying remote mechanism. WMI remote connections must comply with DCOM security requirements for impersonation and authentication.
Take a look there-[How To: Connect to a Remote Computer][^] for more details.


这篇关于连接到另一台电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆