|
|||||||
| Register | FAQ | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am comparing two folders and I don't care if my left side files are changed, but only interested in changes to the right hand side files. Basically I would like to find all differences on the right hand side, with modified date/time newer than the left side. Is it possible to set such criteria using BC? Any help would be appreciated.
|
|
#2
|
|||
|
|||
|
It should work to just use:
criteria timestamp If you're doing something that operates on the selected files, just use the select rt.newer.files rt.orphan.files If you're doing a report in your script, use the report option: display-right-newer-orphans That should handle it.
__________________
Chris K Scooter Software |
|
#3
|
|||
|
|||
|
Chris,
Thanks for your response. When I try to add what you have suggested I am getting a scripting error. (I guess when it tries to exec the last line). Am I missing some thing? Below is my script. Thanks in advance. --------------------------------------------------------- load "c:/comparison-stage/source-flat" "c:/comparison-stage/dest-flat" expand all criteria timestamp select rt.newer.files rt.orphan.files compare file-report layout:side-by-side options:display-right-newer-orphans output-to:RT_NEW_File_diff_report_detailed.html output-options:html-color ------------------------------------------------------ |
|
#4
|
|||
|
|||
|
Sorry, I thought you were doing a folder-report
The "display-right-newer-orphans" is an option for the folder-report command change your report line to: file-report layout:side-by-side options:display-mismatches output-to:RT_NEW_File_diff_report_detailed.html output-options:html-color and it should work fine. So, if you want to use a file report, use a select command and then file-report. If you want a folder-report, you don't need a select command, but need a "display-right-newer-orphans" option in the folder-report command. Also, the compare command might not be doing what you want. If you don't give compare an option like "compare binary" or "compare CRC" you will get whatever the last content comparison type was, CRC, binary, or rules-based. If you just want timestamps considered, you don't need the compare command, because the criteria timestamp line is handling that already.
__________________
Chris K Scooter Software |
![]() |
| Thread Tools | |
| Display Modes | |
|
|