PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Ends the execution of a 32-bit or 64-bit application on the current computer: all the instances of the executable are killed. The application can be identified by its name or by its PID.
Example
WINDEVReports and QueriesWindowsUser code (UMC)
bRes is boolean
bRes = ExeTerminate("C:\Draw\psp\psp.exe")
Windows Mobile
bRes is boolean
bRes = ExeTerminate("psp.exe")
Syntax

Terminating an application identified by its name Hide the details

<Result> = ExeTerminate(<Executable name>)
<Result>: Boolean
  • True if all the instances of the program have been deleted,
  • False if a problem occurred. This function may fail:
    • if the executable is not instantiated (the executable is not run).
    • if the user has no sufficient rights to destroy one of the instances.
<Executable name>: Character string (with quotes)
Name and full (or relative) path of the executable (up to 260 characters).
Windows Mobile Name of the executable (up to 260 characters). If this parameter contains the full path of the executable, this path is ignored.

Terminating an application identified by its process ID (PID) Hide the details

<Result> = ExeTerminate(<Process ID>)
<Result>: Boolean
  • True if all the instances of the program have been deleted,
  • False if a problem occurred. This function may fail:
    • if the executable is not instantiated (the executable is not run).
    • if the user has no sufficient rights to destroy one of the instances.
<Process ID>: Integer
Process ID (PID) of the application. This identifier is returned by ExeRun (associated with the exePID constant) or by ExeGetPID.
Business / UI classification : Business Logic
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Windows Processos
https://youtu.be/7fMt3B5D6as

https://windevdesenvolvimento.blogspot.com/2019/05/dicas-2114-windev-webdev-mobile-windows.html

// Video sobre Processos Windows, como terminar processos, tabela e grafico
amarildo
18 May 2019
Novo Exemplo ExeTerminate
Novo Exemplo ExeTerminate

ExeTerminate(TABLE_processos1.COL_exelongname)

//Blog Com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/08/curso-windev-funcoes-exe-windows-009.html
https://www.youtube.com/watch?v=cxvXzTSMazU
De matos AMARILDO
15 Aug. 2016
Exemplo ExeTerminate
//Finaliza Um programa

EDT_ProgramaAFinalizar="\Programas\Notepad++\notepad++.exe"
b_finaliza is boolean
b_finaliza = ExeTerminate(EDT_ProgramaAFinalizar)
Info("Programa Finalizado")

//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/05/curso-windev-funcoes-exe-windows-001.html
https://www.youtube.com/watch?v=PgBTG-RX4eM
De matos AMARILDO
29 May 2016