forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


TaskExists

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 6 Source Code
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Dec 08, 2009 8:14 pm    Post subject: TaskExists Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 140

PostPosted: Thu Apr 01, 2010 3:31 am    Post subject: Reply with quote

Excellent function!!!
Very usefull!!! Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 6 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group