Solved

Intercept  a file before being Processed : vb6

Posted on 2004-10-03
5
231 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

Independent Software Vendors: 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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

738 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