Execute Application via ShellExecute - Delphi
DarkCoderSc
Jean-Pierre LESUEUR
uses
Winapi.ShellAPI, Winapi.Windows;
// ...
// No parameter
ShellExecute(0, 'open', 'notepad.exe', nil, nil, SW_SHOW);
// ...
// With parameter
ShellExecute(0, 'open', 'notepad.exe', 'C:\Temp\file1.txt', nil, SW_SHOW);
// ...
// Run as Administrator (Prompt)
ShellExecute(0, 'runas', 'notepad.exe', nil, nil, SW_SHOW);
Implemented By Technique
Featured Windows API
Created
May 9, 2025
Last Revised
May 9, 2025
Execute Programs