VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Compare Files in Different Folders

by Patrick v O (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

Rev 8-1-2001. Have you ever had to compare files in two different folders? Mostlikely, you used paper and pencil. This VB snippet shows the contents of 2 folders and flags files with different date or file size. My graphic design is not the best and yes it would be nice to navigate to you folder (now you enter path). For the first step (3+2 hrs work), I think it will do.

Assumes
The code could be improved for graphics and for scan method. If you select 2 folders with each 1000+ files, it could take 45 seconds. Rev 8-1-2001, uses the ItemFind, which makes the code run much faster. Next change is to loop the smallest file count and use the FindItem on the larger file count listview.
Code Returns
Two listviews with files for each folder, it flags files that are different.

Rate Compare Files in Different Folders

Download Compare Files in Different Folders

Download Compare Files in Different Folders (5 KB)

Compare Files in Different Folders Comments

No comments have been posted about Compare Files in Different Folders. Why not be the first to post a comment about Compare Files in Different Folders.

Post your comment

Subject:
Message:
0/1000 characters