|
-
Feb 10th, 2001, 02:55 AM
#1
Thread Starter
Member
How to check whether a file is changed,added to directory(particular).
Thanks,
Milind.
-
Feb 10th, 2001, 03:05 AM
#2
I can think of 2 ways, depending on what you want to do. If you want to check if it has been modified since it was written to hard drive, simply compare the file creation date with the last modified date (new to win 95/98/me)
Or you could do it like Microsoft Anti-virus did. Save a checksum for each file in that directory in a file called checksum.vb or whatever. Compute the checksums again on a periodic basis and compare them to the old ones.
-
Feb 11th, 2001, 02:22 AM
#3
Addicted Member
As Lord Orwell Suggested, Checking Data And Time Is The Best And The Widely Used Method. But If You Want To Receive a notification whenever a file is created, Opened, Closed Or Modified, Try Using An ActiveX Control Available At www.activex.com.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|