Hi,
I'm looking for a script that will help me to compare two folders, and output the filename of any files that don't match to an output folder.
For testing, I've copied folder A to folder B and then modified a file in folder B.
My current version of the script is below with the result it produces also below.
Questions;
a) the modified file shows up as a "newer" file - but I'd much rather it be a different file - any advice?
b) is there a way to just produce a list of filenames that are different?
SCRIPT **************
# Load the base folders.
load "folder A" &
"folder B"
# Report
expand all
folder-report layout:summary options:display-mismatches &
output-to:"compare.txt"
RESULT ***********
Folder Compare
Produced: 26/06/2018 10:05:47 AM
Mode: Differences
Left base folder: Folder A
Right base folder: Folder B
Left Orphan Files (0) Size Modified
-------------------------------------------------------------
Right Orphan Files (0) Size Modified
-------------------------------------------------------------
Left Newer Files (0) Size Modified
-------------------------------------------------------------
Right Newer Files (1) Size Modified
-------------------------------------------------------------
UD-19020X-SR5478-Script02-JSC.sql 3,010 1/06/2018 8:32:16 AM
3,025 26/06/2018 9:01:51 AM
-------------------------------------------------------------
Difference Files (0) Size Modified
-------------------------------------------------------------
I'm looking for a script that will help me to compare two folders, and output the filename of any files that don't match to an output folder.
For testing, I've copied folder A to folder B and then modified a file in folder B.
My current version of the script is below with the result it produces also below.
Questions;
a) the modified file shows up as a "newer" file - but I'd much rather it be a different file - any advice?
b) is there a way to just produce a list of filenames that are different?
SCRIPT **************
# Load the base folders.
load "folder A" &
"folder B"
# Report
expand all
folder-report layout:summary options:display-mismatches &
output-to:"compare.txt"
RESULT ***********
Folder Compare
Produced: 26/06/2018 10:05:47 AM
Mode: Differences
Left base folder: Folder A
Right base folder: Folder B
Left Orphan Files (0) Size Modified
-------------------------------------------------------------
Right Orphan Files (0) Size Modified
-------------------------------------------------------------
Left Newer Files (0) Size Modified
-------------------------------------------------------------
Right Newer Files (1) Size Modified
-------------------------------------------------------------
UD-19020X-SR5478-Script02-JSC.sql 3,010 1/06/2018 8:32:16 AM
3,025 26/06/2018 9:01:51 AM
-------------------------------------------------------------
Difference Files (0) Size Modified
-------------------------------------------------------------
Comment