Go Back   Scooter Forums > Beyond Compare 2 Discussion > Script Central
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 21-May-2004, 11:41 AM
Guest
 
Posts: n/a
Default Script help - Ignoring older files from the right

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.
Reply With Quote
  #2  
Old 21-May-2004, 01:04 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,793
Default Re: Script help - Ignoring older files from the ri

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
Reply With Quote
  #3  
Old 21-May-2004, 03:14 PM
Guest
 
Posts: n/a
Default Re: Script help - Ignoring older files from the ri

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
------------------------------------------------------
Reply With Quote
  #4  
Old 21-May-2004, 04:05 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,793
Default Re: Script help - Ignoring older files from the ri

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:25 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.