LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Tue Dec 08, 2009 8:14 pm Post subject: TaskExists |
|
|
There is WinExists, but nothing to find if a specific EXE is running. I just made a quick function to check for a running EXE in a program and thought I would share.
Function: @TaskExists()
Returns 1 if EXE if running. NIL of not.
Example: %i = @TaskExists(vds.exe)
Code: |
:TaskExists
if @not(%1)
Error 2
end
%l = @new(list)
list tasklist,%l
%m = @match(%l,%1)
if %m
%e = 1
end
list close,%l
exit %e
|
_________________ Chris
Http://theblindhouse.com |
|