Is there a function that it can detect a file (eg. a exe or a txt file ) is running or opening .....

thx for your reply !!