Intercept a file before being Processed : vb6

Hello Experts

Id like to intercept a file could be a ( .exe,    .dll,  .txt )  or just about anyfile.

what id like to do is once a file has been selected to load from anywhere on the
computer id like to check the filename
with a list which will tell me if it is allowed to load or not.

thankyou.







Jimmyx1000Asked:
Who is Participating?
 
anvConnect With a Mentor Commented:
may be this could help u a bit..

http://www.mentalis.org/tips/tip123.shtml
0
 
Jimmyx1000Author Commented:
This should Preferably   run as a background task
0
 
anvCommented:
hi Jimmyx1000

the file u want to check is any file, that is opened using other application? or using ur own application?
0
 
Jimmyx1000Author Commented:
For example

if i go to my computer and select any .exe file
from any where on the hard disk.

if the person double clicks an .exe then  this file name is sent to
a list to compare if it is on the list.

this list is just a text file im using to check if the .exe is allowed
to open or not

so if its ok by the list to be opened

then open the .exe

if it is not allowed to be opened

then stop the .exe from executing

so basically

.exe is clicked
check file name on list
if ok continue opening file
if not ok stop execution of the .exe






0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.