问题描述
大家好,
这是我的第一个问题.
我正在尝试实施网络管理系统.
我正在用C#(VS 08)编写应用程序,如
页面加载->->
Hello All,
This is my first question.
I am trying to implement Network Management System .
I am writing an application in C#(VS 08) as
on page load ->->
NetworkBrowser nb = new NetworkBrowser();
foreach (string pc in nb.getNetworkComputers())
{
ComboBox1.Items.Add(pc); //this will add all the computer names present in LAN
}
on Combobox1_SelectedIndexChanged event ->->
string name = Combobox1.Text.ToString(); // this will give the selected computer's name present in the LAN
Process[] ipByName = Process.GetProcesses(name);//this will get all the processes from the selected computer
foreach (Process p in ipByName)
{
MessageBox.Show(p.ProcessName.ToString());
}
*****我遇到无法连接到远程计算机的错误
因此,请告诉我如何在C#中使所有进程在远程计算机上正常工作
我在这里的情况就像
我有一个名为Server-1的服务器
我在LAN C-1和C-2中有2个客户端
我想要一个可以告诉我客户端c-1和c-2上当前正在运行的所有进程的应用程序
在此先感谢
Ajay
*****I am getting error like Couldn''t Connect to Remote Computer
So please tell me how to get all the processes working on a remote computer in C#
My Scenario here is like
I have server named Server-1
I have 2 Client''s in LAN C-1 and C-2
I want an application that will tell me all the processes currently running on Client c-1 and on c-2
Thanks in advance
Ajay
推荐答案
这篇关于如何解决无法连接到远程计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!