Link to home
Start Free TrialLog in
Avatar of Jimmyx1000
Jimmyx1000

asked on

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.







Avatar of Jimmyx1000
Jimmyx1000

ASKER

This should Preferably   run as a background task
hi Jimmyx1000

the file u want to check is any file, that is opened using other application? or using ur own application?
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






ASKER CERTIFIED SOLUTION
Avatar of anv
anv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial