Example: Windows script The command line of the application is read, then tested to see if it is Notepad.exe. If it is, Notepad is closed. If it isn't, the script ends. |
GetCommandline ?Text If ?Text Eq "C:\Winnt\Notepad.exe" Killapp Notepad.exe EndIf |