Solved

Intercept  a file before being Processed : vb6

Posted on 2004-10-03
5
230 Views
Last Modified: 2012-05-05
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.







0
Comment
Question by:Jimmyx1000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:Jimmyx1000
ID: 12215040
This should Preferably   run as a background task
0
 
LVL 10

Expert Comment

by:anv
ID: 12215218
hi Jimmyx1000

the file u want to check is any file, that is opened using other application? or using ur own application?
0
 

Author Comment

by:Jimmyx1000
ID: 12215836
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
 
LVL 10

Accepted Solution

by:
anv earned 500 total points
ID: 12215936
may be this could help u a bit..

http://www.mentalis.org/tips/tip123.shtml
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question