Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: list programs on esecution  (Read 8374 times)

0 Members and 1 Guest are viewing this topic.

-RIDDICK-

  • Guest
list programs on esecution
« 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.

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: list programs on esecution
« 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)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

-RIDDICK-

  • Guest
Re: list programs on esecution
« 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!!!!!!!

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: list programs on esecution
« 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)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein