Solved

Intercept  a file before being Processed : vb6

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Modifying Conditional Format from VBA code 3 60
VB6 ListBox Question 4 48
fso.FolderExists("\\server\HiddenFolder$") 4 78
Collapse and expand table in Word 2010 2 32
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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