Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Snooping with VFP
Message
From
30/05/1999 15:23:51
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00224442
Message ID:
00224548
Views:
24
>>Is there any way VFP can "snoop" on file activity (e.g. create new, modify, delete):
>>
>>- to a specific folder or any of its sub-folders
>>- to a device (e.g. Zip, hard drive, etc.)
>>
>>IOW, is there any API call that would let VFP detect someone using Word to create a file in a folder/device (as an example)?
>
>You could use ADIR() to scan for new files or changes in size/time stamp, and then under NT, there are API calls that could be used to see who opened the file, or in the case of creating a new file, determine the owner.

I'd rather the OS sent a message to VFP, rather than VFP querying the disk/device... the latter will be hard on disk I/O in the general case.

I understand the Octupus on-line backup program somehow hooks itself into NT's file I/O... as do various NT "undelete" utilities. I was just wondering if VFP could hook itself in there as well.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform