Compare Two Text file and update files only for missing entries ...!!!

29 views
Skip to first unread message

Swapnil

unread,
Jun 17, 2008, 2:58:24 AM6/17/08
to Win32 Programming
We have index file (.txt) at Repository folder(local machine) as well
as at the destination(USB device).
Each index file is having more than 30000 Entries. Index file entry
contains Driver name, PnPID and Path of INF file.

Here Single INF file can have multiple entries.

when we copy the repository folder from Source location to
Destination, first We need to Compare Two index Files. And find out
the exact missing entries that are present in source index file but
not in destination index file. And we need to update index file as
well as copy only those files for missing entries at destination.

Also if any entry is present in destination index file but not in
source index file, we need to delete that entry and Associated file
for that entry from destination folder.

I am also attaching here Entries from Index files

( SiS Mirage Graphics PCI\VEN_1039&DEV_6330&SUBSYS_822A1043 .
\DVD1\fil02\drivers2007\2007\10\1266999\driver000 .
\DVD1\fil02\drivers2007\2007\10\1266999\driver000\sisgr.inf ) and
( SiS Mirage Graphics PCI\VEN_1039&DEV_6330&SUBSYS_50471297 .
\DVD1\fil02\drivers2007\2007\10\1266999\driver000 .
\DVD1\fil02\drivers2007\2007\10\1266999\driver000\sisgr.inf )

In both of these entries only PCI\VEN_1039&DEV_6330&SUBSYS_822A1043
and PCI\VEN_1039&DEV_6330&SUBSYS_50471297 are different but have the
same INF file Path.
Reply all
Reply to author
Forward
0 new messages