Page 1 of 1

task manager

Posted: Fri Oct 06, 2017 4:35 pm
by MGA
Hello,

How do I know which applications are running on TASK MANAGEMENT?

I need to know if a particular application is running on the task manager.

I would like to know the mysql process / service name

thank you

Re: task manager

Posted: Sun Oct 08, 2017 9:24 am
by Marc Venken
Maybe this can help

Code: Select all

function getprogram()

 CFILENAME := "TEST.EXE"

   IF ISEXERUNNING( CFILENAME( HB_ARGV( 0 ) ) )
      msginfo("Test is running","Title")
      SHOWWINDOW( FINDWINDOW( 0, "TEST" ), 9 )
      SETFOREGROUNDWINDOW( FINDWINDOW( 0, "TEST" ) )
      RETURN NIL
   else
      msginfo("Test is not running","Opgelet")
   ENDIF

return NIL
 

Re: task manager

Posted: Tue Oct 10, 2017 1:32 am
by MGA
Marc, thanks...

I would like to know the name of the mysql service installed on the computer.

Re: task manager

Posted: Tue Oct 10, 2017 2:02 pm
by Patrizio

Code: Select all

 GetTasks() // Returns an array with the names of all the active Tasks running in Windows

Re: task manager

Posted: Wed Oct 11, 2017 11:54 am
by MGA
Patrizio,

Friend, using WINDOWS 7, gettasks () returns me an incomplete list of processes.
I need a complete list so that I can find the name of the MYSQL process installed.

Thanks

Re: task manager

Posted: Wed Oct 11, 2017 12:15 pm
by ADutheil
You could run this command: tasklist /v /fi "STATUS eq running"

Re: task manager

Posted: Wed Oct 11, 2017 12:57 pm
by MGA
Thanks