473,586 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tasklist Walking

Can anyone point me in the right direction with some code to 'walk' the
Windows Tasklist?

I need to be able to find out if a specific application is running.

Many thanks in advance,

Jeff Law
New Zealand
Nov 20 '05 #1
3 1096
Hi,

Simple example. Also look at Process.GetProc essesByName.

Dim p As Process
For Each p In Process.GetProc esses
Trace.WriteLine (p.ProcessName)
Next

Ken
----------------
"Jeff Law" <je*****@datama sta.co.nz> wrote in message
news:uh******** ******@TK2MSFTN GP11.phx.gbl...
Can anyone point me in the right direction with some code to 'walk' the
Windows Tasklist?

I need to be able to find out if a specific application is running.

Many thanks in advance,

Jeff Law
New Zealand

Nov 20 '05 #2
"Jeff Law" <je*****@datama sta.co.nz> schrieb
Can anyone point me in the right direction with some code to 'walk'
the Windows Tasklist?

I need to be able to find out if a specific application is
running.


Don't know what you mean, but the System.Diagnost ics.Process class might
help you.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Many thanks Ken!

That's a heap easier than the way we did it in VB6!!!

Jeff Law
DataMasta Limited
New Zealand

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #4

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

Similar topics

2
9716
by: Who Cares | last post by:
Okay, this may be a bit of a newbie question but I could really use some help. I want to write a set of routines that will read in the contents of XML files. I'll be reading the tag names, attributes and data into other interfaces, stuffing arrays, loading trees, etc. I will not know the structure of these files ahead of time. Some...
0
1064
by: Chris Lyon | last post by:
I handle a lot of audio files of different formats, which live in a directory tree. WAV files in a wav directory, AIFF's in an AIFF directory next to the wav directory and mp3's in an MP3 directory next to the Aiff. this directory structure exists under a large directory tree of the libraries the sounds are in. Whenever I wish to add a...
4
1628
by: Jim Bancroft | last post by:
Sorry for the basic nature of this question. I know XSL can do this, but I don't recall a good method... Say I have an xml structure like this: <folder_structure> <folder name="folder1"> <file name="myfile"/> </folder> <folder name="folder2">
1
2784
by: Zachary Hartnett | last post by:
I was trying to write a routine this morning that would open a given assembly, walk the inheritance tree of classes in the assembly, and provide a list of classes in the assembly that inherit from DataSet. Here is a snippet from the routine I came up with: ------------------------------------------------------------...
2
1714
by: tshad | last post by:
I have a Windows Service I am trying to get to work, which is not working correct, but one of the things it does is start Notepad.exe. The program seems to be doing this and it shows in the Tasklist, but I don't see it running. When I kill it from the Tasklist, it starts back up again (it shows in the Tasklist), but again I can't see it. ...
5
1748
by: TrulyUnusualdotcom | last post by:
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame. Anyway I got to the part about walking through an array and I just can't seem to figure out what this would be used for. What is the point of this? When would you use this? It says in great detail how to do it but it's missing the the why and where. Any help would be...
8
2104
by: Ben Hallert | last post by:
Hi guys! I'm working on a little javascriptlet/greasemonkey script, and I've run into a challenge that I think can be solved with walking the DOM, but I feel like I'm kludging my way through and wondering if there might be a better answer out there. Here's the problem: I want to insertCell(0) into an existing table, but the table doesn't...
1
2120
by: michael | last post by:
i has a main form named 'Form1', the main form show a other form named 'Form2', then the taskbar has two item i set the Form2's Property 'ShowInTaskbar' to 'False', then the taskbar only has 'Form1', but when i press ALT+TAB, the tasklist still has two item, why? note: not use the 'RegisterServiceProcess'
11
1389
by: Simon Woods | last post by:
Hi I have this recursive function and I want to walk the inheritance hierarchy to set field values .... the generic T is constrainted as the base class of the inheritance hierarchy Friend Shared Function InjectFieldValues(ByVal p_def As T, ByVal p_properties As PropertyMaps) As T
0
7912
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.