473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 4163

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Doug R | last post by:
Hello, I could use a little help from you Gurus out there. I have an aplication that watches a directory and detects when a PGP encrypted file lands in the directory and starts a process that...
23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
23
by: Michel Bany | last post by:
I am trying to parse responseXML from an HTTP request. var doc = request.responseXML; var elements = doc.getElementsByTagName("*"); the last statement returns an empty collection when running from...
12
by: |-|erc | last post by:
when a user clicks back to get to my site, I want it to run a javascript function. can you detect when the FORWARD button is greyed out? Herc -- I call3d this fugly and I'm proud...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
4
by: Marc Scheuner | last post by:
Folks, I have a text file which contains some XML. In its XML header, it claims to be of UTF-8 encoding - however, it's really not, it's a ANSI / Windows-1252 / ISO-8859-1 encoding. Trouble...
32
by: Olivier | last post by:
Dear all, I thought the code ----------------------------- pt_fichier_probleme = fopen(nom_fichier, "w"); if(pt_fichier_probleme == NULL){ message_warning_s ("Erreur l'ouverture du...
5
by: pamela fluente | last post by:
I have placed a button on a page to open a pdf stored on another site. When the user clicks on the button I do a Redirect to the pdf URL .... and this seems to work fine. Question: is this...
36
by: Don | last post by:
I wrote an app that alerts a user who attempts to open a file that the file is currently in use. It works fine except when the file is opened by Notepad. If a text file is opened, most computers...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.