Go Back   Scooter Forums > Beyond Compare 3 Discussion > Folder Compare
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 12-Jun-2012, 11:33 AM
DevDavid DevDavid is offline
Visitor
 
Join Date: Jun 2012
Posts: 4
Default Folder Compare with file name change on one side.

I am trying to use Beyond Compare to validate a migration. Each file name is having an ID number appended to it durring migration. EX (ID XXXX). How can I compare these files that have the (ID XXXX) appended to the filename, with files from my source directory that do not have the (ID XXXX) included in the file name? See screenshot. All files show as no match. I am trying to do a binary comparison of the two directories.

Any help would be appreciated.

Thanks,

Last edited by DevDavid; 19-Jun-2012 at 08:07 AM.
Reply With Quote
  #2  
Old 12-Jun-2012, 12:34 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,447
Default

Hello,

You can use the BC3 Pro feature to align files of different names using the Session menu -> Session Settings, Misc tab: Alignment Overrides. Here is one example override. It assumes the ID is on the left.
(.*) \(ID \d+\)\.xlsx
$1.xlsx
Regular Expression Enabled.
__________________
Aaron P Scooter Software

Last edited by Aaron; 12-Jun-2012 at 12:35 PM. Reason: Altered example from .txt to .xlsx
Reply With Quote
  #3  
Old 15-Jun-2012, 12:06 PM
DevDavid DevDavid is offline
Visitor
 
Join Date: Jun 2012
Posts: 4
Default

Thank you for your help Aaron.
I have now upgraded to the pro version. I am having a hard time coming up with a regular expression that will work for me. The differences in the file are that it has the appended (IDXXXXX) and sometimes there is an added (r) after the file extention. The files have random extentions, and are not all xls.
Thanks,

Last edited by DevDavid; 19-Jun-2012 at 08:07 AM.
Reply With Quote
  #4  
Old 18-Jun-2012, 07:45 AM
DevDavid DevDavid is offline
Visitor
 
Join Date: Jun 2012
Posts: 4
Default

Let me try to clarify. Aaron, the Regular expression you listed in your post above works great if all documents are .xlsx. The problem I am having is that the folders have tens of thousands of files with a wide aray of extensions. How can I get it to align the files regardless of extension, without running a compare one extension at a time?
Thanks,
Reply With Quote
  #5  
Old 18-Jun-2012, 08:33 AM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,447
Default

How does this work for you?
(.*) \(ID \d+\)\.(.*)
$1.$2
Regular Expression

The (r) should just mean that the files are Read-Only. You can right click the column area (Name, Size, Modified) and add the Attributes column to pull that information out of there.
__________________
Aaron P Scooter Software
Reply With Quote
  #6  
Old 18-Jun-2012, 08:44 AM
DevDavid DevDavid is offline
Visitor
 
Join Date: Jun 2012
Posts: 4
Default

Works great. Thank you for your help!
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 11:12 AM.


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