FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour task manager
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
task manager
Posted: Fri Oct 06, 2017 04:35 PM

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

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: task manager
Posted: Sun Oct 08, 2017 09:24 AM
Maybe this can help

Code (fw): Select all Collapse
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
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: task manager
Posted: Tue Oct 10, 2017 01:32 AM

Marc, thanks...

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

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 90
Joined: Wed Nov 07, 2007 08:56 AM
Re: task manager
Posted: Tue Oct 10, 2017 02:02 PM
Code (fw): Select all Collapse
 GetTasks() // Returns an array with the names of all the active Tasks running in Windows
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: task manager
Posted: Wed Oct 11, 2017 11:54 AM

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

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: task manager
Posted: Wed Oct 11, 2017 12:15 PM

You could run this command: tasklist /v /fi "STATUS eq running"

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: task manager
Posted: Wed Oct 11, 2017 12:57 PM

Thanks

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion