how to list all the active processes in Windows?

hoihtah

Diamond Member
Jan 12, 2001
5,183
0
76
i'm trying to get all the list of actively running processes.
for example, if you get into task manager...
i can see it under processes.
it lists image names and so on.

but how can i capture that info?
into a string?

any help would be greatly appreciated.
 

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
start-> run-> "cmd"

c:\> tasklist



note - this works on my Windows XP workstation.. just tried it from this Win2k box at work and it didnt seem to work *edit* but that -could- be because I'm not logged in as admin, but not sure
 

trmiv

Lifer
Oct 10, 1999
14,670
18
81
If you want to put that information into a text file, type this:

tasklist > C:\task.txt


where C is the drive you want the text file to be, and task.txt is the name. The above command will output all the active tasks into a text file named text.txt saved in the root of C:.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Remember that active tasks does not equal processes.

 

hoihtah

Diamond Member
Jan 12, 2001
5,183
0
76
thanx guys
you guys are the best.

at work...
i tried on my nt4 workstation.
and it didn't work.
i'm guessing that it might be that whole "admin" login thing.

i'll try this at home with admin login.
thanx again.
 

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
I researched further and I dont think you can do it on pre-windows XP.. but there is a similar functionality in windows 2000 resource kit. I made a post at arstechnica a couple weeks ago in the "nt/2k " forum about this very question, and there is more info there. if you cant find it PM me