473,508 Members | 2,202 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 1093
Hi,

Simple example. Also look at Process.GetProcessesByName.

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

Ken
----------------
"Jeff Law" <je*****@datamasta.co.nz> wrote in message
news:uh**************@TK2MSFTNGP11.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*****@datamasta.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.Diagnostics.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
9709
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,...
0
1055
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...
4
1621
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">...
1
2780
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...
2
1710
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...
5
1739
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...
8
2096
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...
1
2114
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...
11
1381
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...
0
7127
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
7331
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,...
1
7054
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...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
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...
0
3204
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...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
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 ...
1
768
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.