472,142 Members | 1,301 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

Detect attempt to run open/run file.

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.
Jul 17 '05 #1
3 4121

"Robert Hogan" <bu*******@hotmail.com> wrote in message
news:eb**************************@posting.google.c om...
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.


You should be able to use standrd error trapping (for file not found, etc.)
Jul 17 '05 #2
>
You should be able to use standrd error trapping (for file not found, etc.)


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.
Jul 17 '05 #3
On 27 Jul 2004 17:11:24 -0700, bu*******@hotmail.com (Robert Hogan)
wrote:

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


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.


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.sysinternals.com/win9x/98utilities.shtml

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)
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by David McCulloch | last post: by
23 posts views Thread by Michel Bany | last post: by
32 posts views Thread by Olivier | last post: by
5 posts views Thread by pamela fluente | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.