Page 1 of 1
How to Stop a program running (Kill)
Posted: Wed Oct 15, 2014 9:16 am
by zolysoftsolutions
Hi everybody,
How can I stop an aplication running? By example if I want to stop the running "sssf.exe" witch function I have to use?
Thank you very much.
Best regards,
Zoli B.
Re: How to Stop a program running (Kill)
Posted: Wed Oct 15, 2014 9:23 am
by serge_girard
Zoli,
Use TSKILL <prg> or TASKKILL in DOS to stop. See your Windows version for exact command.
Serge
Re: How to Stop a program running (Kill)
Posted: Wed Oct 15, 2014 10:05 am
by esgici
zolysoftsolutions wrote:
How can I stop an aplication running?
-HMG 3.3.1 (Stable) 2014/07/15 wrote:
- ...
- New Functions:
...
- TerminateProcess ( [ nProcessID ] , [ nExitCode ] )
...
Re: How to Stop a program running (Kill)
Posted: Wed Oct 15, 2014 10:10 am
by zolysoftsolutions
Thank you Serge and Esgici!
Esgici..how can I find the Id of the process I want to kill.
By example I know the name of running program: BonPrinter.exe ..but for the function you mentioned I need the Id of the process.
..or where I can find a description of these new functions?
Best regards,
Zoli B.
Re: How to Stop a program running (Kill)
Posted: Wed Oct 15, 2014 12:41 pm
by esgici
zolysoftsolutions wrote:
..how can I find the Id of the process I want to kill.
You need someting like this :
- Screen shoot of Get Process ID test .prg
- GetProcessID.PNG (67.97 KiB) Viewed 5001 times
- GetProcessID.zip
- Source files ( .hbp & .prg ) for Get Process ID test prg
- (1023 Bytes) Downloaded 379 times
Happy HMG'ing
Re: How to Stop a program running (Kill)
Posted: Thu Oct 16, 2014 8:09 am
by Agil Abdullah
Hi Esgici,
I'll try to implement your codes... And to make me anthusiastic, Let me name it like this:
Function LicenseToKill()
....
....
....
Return
Thanks for sharing.
Re: How to Stop a program running (Kill)
Posted: Thu Oct 16, 2014 8:54 am
by esgici
Agil Abdullah wrote:
I'll try to implement your codes... And to make me anthusiastic, Let me name it like this:
Function LicenseToKill()
....
In fact that code don't provide any
licence,
simply a way ( ID / address ) to access.
Kill or love, this is your opportunity
Happy HMG'ing
Re: How to Stop a program running (Kill)
Posted: Thu Oct 16, 2014 6:00 pm
by zolysoftsolutions
THANK YOU very much Esgici.
Is working.
Viva HMG!