Click to See Complete Forum and Search --> : Virus checker
Milind
Feb 10th, 2001, 01:55 AM
How to check whether a file is changed,added to directory(particular).
Thanks,
Milind.
Lord Orwell
Feb 10th, 2001, 02:05 AM
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.
KrishnaSantosh
Feb 11th, 2001, 01:22 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.