#72316 - 2002-12-23 01:49 PM
file comparison
|
Raceeend
Starting to like KiXtart
Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
|
Hello,
I want to make a scripts that can compare files in a directory (including subdir's). When two files are the same it has to write both file locations and file sizes into a log file.
Any idea how to handle this?
_________________________
regards,
Martijn
|
|
Top
|
|
|
|
#72319 - 2002-12-23 04:57 PM
Re: file comparison
|
Raceeend
Starting to like KiXtart
Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
|
Les,
That's exactly what i want to do.
_________________________
regards,
Martijn
|
|
Top
|
|
|
|
#72321 - 2002-12-24 10:27 AM
Re: file comparison
|
Raceeend
Starting to like KiXtart
Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
|
Well i guess size is the most accurate one. But a combination of size and name would be great.
_________________________
regards,
Martijn
|
|
Top
|
|
|
|
#72323 - 2002-12-25 12:59 AM
Re: file comparison
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11631
Loc: CA
|
If I may Les,
I think he means he wants a script to look for DUPLICATE files and then write it to a log file. Example WIDGET.EXE may be in 5 or more different directories, and he wants to log all of them.
Not sure why he wants to use KiXtart to do it with though, as there are numerous programs out there that will already do that much quicker then KiXtart can. However, if he is wanting to do it as a LEARNING experience to better his skills at KiXtart... then hey what the heck. ![[Wink]](images/icons/wink.gif) [ 25. December 2002, 01:01: Message edited by: NTDOC ]
|
|
Top
|
|
|
|
#72325 - 2002-12-28 10:43 PM
Re: file comparison
|
Raceeend
Starting to like KiXtart
Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
|
Les,
Sorry for the wrong answer i gave you but what NTDOC said in his last post is what i really want to do.
I want to check if there are file more then ones in our department/home folders. Just to see how much diskspace there could be saved if people cleared their mess more often.
NTDOC,
wich programs are you talking about?
_________________________
regards,
Martijn
|
|
Top
|
|
|
|
#72326 - 2002-12-29 03:22 AM
Re: file comparison
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Martijn,
So are you looking to see:
- File names
- Quantity of files
- Size of files
- Differences
- Similarities
?? Kent
|
|
Top
|
|
|
|
#72327 - 2002-12-29 03:01 PM
Re: file comparison
|
Raceeend
Starting to like KiXtart
Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
|
Kent,
I want to see how many duplicate files there are and what sizes they have. So that i can make a report to how much drivespace is taken by useless data.
_________________________
regards,
Martijn
|
|
Top
|
|
|
|
#72328 - 2002-12-30 02:28 PM
Re: file comparison
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Probably the easiest way to address the duplicates is to write these folders out to a text file and run it through MS-Access "find duplicates wizard" in the query builder.
Under NT, you would do something like -
DIR E: /B /S > C:\DRVLOG.TXT
Then you could link or import this file..
Kent
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 764 anonymous users online.
|
|
|