help taskkill
Regards,
Marek Horodyski
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello Qatan,
You can try a basic sample for Windows.
Bernard.
* bm_ExeKill() - Fermer un programme.
* -----------------------------------
/*
En cours de développement.
Harbour 3.0.0 - Windows 7 pro 32
Ce programme est un exemple basique.
# Test.hbp - Compilation de Test.EXE.
# -----------------------------------
#
# Nom du programme avec éventuellement son chemin.
#
-oTEST.EXE
#
# Affiche tous les warnings.
#
-w3
#
# Ne fabrique pas l'exe si warning.
#
-es2
#
# Programme maître.
#
TEST.PRG
#
# Librairies : respecter l'ordre.
#
hbwin.lib
*/
*
* --------------
PROCEDURE Main
* --------------
*
SET DATE FRENCH
*
* Mise en ANSI ( Windows ) langue française.
*
REQUEST HB_LANG_FR
REQUEST HB_CODEPAGE_FRWIN
HB_CDPSELECT( 'FRWIN' )
HB_LANGSELECT( 'FR' )
*
SETMODE( 43, 80 ) && Lignes et colonnes d'affichage écran.
*
bm_ExeKill( "AcroRd32.exe" )
?
*
?
?
WAIT
*
RETURN
*
* ---------------------------------
FUNCTION bm_ExeKill( vExe )
* ---------------------------------
*
LOCAL oLocator, ; && Objet OleAutoClient
oProcess, ; && Objet ExecQuery
oWMI, ; && Objet ConnectServer
cProc && Programme à détruire.
*
oLocator := WIN_OleCreateObject("WbemScripting.SWbemLocator")
*
oWMI := oLocator:ConnectServer(".", "root\cimv2")
*
oProcess := oWMI:ExecQuery('Select * from Win32_Process where Name = "' + vExe + '"')
*
FOR EACH cProc in oProcess
cProc:Terminate()
ENDFOR
*
* Libère la mémoire.
*
oLocator := NIL
oProcess := NIL
oWMI := NIL
*
RETURN NIL
De : harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] De la part de Qatan
Envoyé : vendredi 24 octobre
2014 01:00
À : harbou...@googlegroups.com
Objet : [harbour-users] Kill
Process
Hello Qatan,
Hello Qatan,
I use this to connect to the current computer.
The other way is also good, I think.
Bernard
De : harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] De la part de Qatan
Envoyé : vendredi 24 octobre
2014 16:32
À : harbou...@googlegroups.com
Objet : Re: [harbour-users]
Kill Process
Yes, I am still running 3.0. Time to move over to 3.2, I suppose.