Home / Microsoft / Microsoft DOS / list programs on esecution
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: list programs on esecution  (Read 2465 times)
-RIDDICK-
Guest
« on: October 11, 2005, 02:07:55 AM »

Sorry for my english, I want know if there is a command from prompt (on win-xp) that permit me to show the list of the program that are in esecution on my machine. Similary the Taskmanager on windows. Time late I know this command but now I don't remember  and I need it.

Thank you for all.

Best regards.
IP logged
Sidewinder
Guru



Thanked: 89
Posts: 4,315

Experience: Experienced
OS: Windows XP

« Reply #1 on: October 11, 2005, 04:49:28 AM »

Tasklist will work on XP Pro machines otherwise you can easily write your own.

Code: [Select]

     strComputer = "."
     Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

     Set colProcessList = objWMIService.ExecQuery _
   ("Select * from Win32_Process")                    

     For Each objProcess in colProcessList
   WScript.Echo objProcess.Name
     Next


The script is pretty crude, no sort, and just the basic, no frills information. Save the script with a vbs extension and run it from the command line: cscript scriptname.vbs

Happy Computing 8)
IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
-RIDDICK-
Guest
« Reply #2 on: October 12, 2005, 05:55:00 AM »

Thank you, it work very well, but I need that the result it display on dos prompt, no in windows in Xp.

I connect with my machine on dos from internet and I need to know who are the program in esecution.

HELP ME!!!!!!!
IP logged
Sidewinder
Guru



Thanked: 89
Posts: 4,315

Experience: Experienced
OS: Windows XP

« Reply #3 on: October 12, 2005, 06:29:12 AM »

The only command from DOS I remember that will do this is MEM with either the /P or /C switch. The results will be inaccurate as the only programs listed will be those running within the CMD or COMMAND shell.

CSCRIPT is designed for command line operation. Did not the script produce the results within the CMD window?

Let us know. 8)
IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / list programs on esecution « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.081 seconds with 20 queries.