[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 119
  • Last Modified:

File Comparison (*.*)

How can I create a Vb6 Program to open a file, compare it with a list of others (opened by common dialog?), then create a list of the files that are differant from the original/master?

 I can make the GUI, I just need some code examples...
However, as much info as possible would be VERY helpful...
THANX in advance!

0
NoCDMerger
Asked:
NoCDMerger
  • 4
  • 2
1 Solution
 
VBGuruCommented:
I think you can compare files by comparing
1. by size using filelen function.
2. If the size is the same then,
you can open the file read byte by byte and compare them if they are binary files like exe,com,dll ec..
You can use Open,read statements to do this.
3. You use FileTimeToDosDateTime  to compare the file with date of creation.
0
 
NoCDMergerAuthor Commented:
Well, I just want to compare the visual aspects of files like *.doc or *.xls. So is there a better way to do that?

thanx!
0
 
VBGuruCommented:
Doc and xls files basically use structured storage method to store their information. As such you can't use the methods involved to access this kind of document. So you can do it in VC or something like that.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
VBGuruCommented:
0
 
NoCDMergerAuthor Commented:
thanx 4 your help!
0
 
VBGuruCommented:
welcome
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now