Detect attempt to run open/run file.

Detect attempt to run open/run file.

Post by busrhoga » Tue, 27 Jul 2004 16:54:59


Hello,

I'm not sure this is possible, and if it is possible, whether it's
possible in VB but thats the language I know the best so I'll post
here and if anyone knows a better language to do it in, please let me
know!

Is it possible to write a program that can respond when a user
attempts to run (or open) a file, even if that attempt fails?

The idea would be to provide feedback to the user on recent updates,
or scheduled maintaince to the program/file that they are trying to
access. Particularly if the file (or even the network drive) is
currently unavailable.

If anyone has any suggestions or was able to point me in the right
direction I would be very grateful!

Thanks,

Bob.
 
 
 

Detect attempt to run open/run file.

Post by Raoul Wats » Wed, 28 Jul 2004 10:10:14


You should be able to use standrd error trapping (for file not found, etc.)

 
 
 

Detect attempt to run open/run file.

Post by busrhoga » Thu, 29 Jul 2004 09:11:24

>

I'm not refering to running the program from the VB app, rather it
would sit in memory and detect when a user ran an executable, say from
the start menu or an icon on the desktop.
 
 
 

Detect attempt to run open/run file.

Post by erewho » Thu, 29 Jul 2004 16:34:15

On 27 Jul 2004 17:11:24 -0700, XXXX@XXXXX.COM (Robert Hogan)



I've no idea how it is done in the 32 bit OS
- but it must be possible as FileMon does it - see:
http://www.yqcomputer.com/

It is an open source project
I rather doubt that one can do all the coding in VB (correction, I
would be astonished if one could)