473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Remote Process Listing

Hello,

I'm using the below code to display a list of processes running on a remote
machine. The code successfully grabs five or six of the processes before
getting an error that says "feature is not supported for remote machines". If
the feature isn't supported for remote machines then why is able to grab some
of the processes before getting the error? Also, I've use the
process.getprocessname successfully on remote machines to search for
instances of a particular process and had no problems. Any ideas?
Dim P As Process
Dim strProcessName As String
Dim shtNameLength As Short
Dim strServer As String
Dim strProcessList As String

Try
For Each P In Process.GetProcesses(strServer)
strProcessName = P.ToString
strProcessName = strProcessName.Remove(0, 28)
shtNameLength = strProcessName.Length
shtNameLength = shtNameLength - 1
strProcessName = strProcessName.Remove(shtNameLength, 1)
strProcessList &= strProcessName & Environment.NewLine
Next
Catch
MessageBox.Show(Err.Description, "Error Gathering Processes",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try

txt1.Text = strProcessList

Apr 6 '06 #1
0 1071

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nick Bunton | last post by:
I have setup remote debugging on an NT4 workstation for testing. I then build from the debug config on my machine and copy all the files from the /bin/debug folder including the .PDB files. I then...
5
by: Roger | last post by:
I would like to get a list of running processes on a remote machine. How is this possible via VB.Net? Is it possible? Can someone point me in the right direction. thanks, rog
1
by: Dan King | last post by:
I have a few ASP pages that run great on a local machine. They read folder content then display the information in the browser. I would like to be able to read the same data from several remote...
2
by: Peter | last post by:
Does anyone have a C# example either in managed code or using WMI on how to start a process on a remote computer? -- Thanks ------------------- czupet@wsinc.com
0
by: Patrick A. | last post by:
Dll written in VB.NET 2003 to start a command remotely. You can : - launch the command and wait until it's finished. (Ex. 1) - launch the command providing a timeout in seconds, it will wait...
7
by: Ctal | last post by:
What is the best way to have my windows app run a .bat file on a remote server? The .bat will need to run as an admin on the remote machine. Additonally I need for my windows app to wait for the...
3
by: alex | last post by:
Hello, My script is trying to get a file from a remote server, every day it ftps from a directory. My code works perfect if I know the name of the file in the remote directory. ...
3
by: Billy Bob | last post by:
Hello In C# how can i start a remote process such as someapp.exe on a remote PC? I know the remote PC's name, but how do I start the app on that PC? Thanks ..
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.