Comparing Folders with different names

Post your bug reports here.
rfossella
Posts: 10
Joined: Fri Mar 11, 2011 6:27 pm

Comparing Folders with different names

Postby rfossella » Fri Apr 01, 2011 8:54 pm

Is there a way to compare folders that have different names? More specifically, to ignore a folder prefix?

Here's my situation: trying to test Production folders/subfolders (files) with Test.
Production will list folders as:
Folder1
>Subfolder1
>> fileA
>> fileB
>Subfolder2
>> fileX
>> fileY

Test contains the same underlying files but has folders:
T_Folder1
>T_Subfolder1
>> fileA
>> fileB
>T_Subfolder2
>> fileX
>> fileY

I have set this up to run from a command line.

So, the question is, is there a filter of some kind that I can set up to ignore the T_. If not, has anyone had a similar situation with a work-around?

Thanks.
Robert

grigsoft
Site Admin
Posts: 1671
Joined: Tue Sep 23, 2003 7:37 pm

Re: Comparing Folders with different names

Postby grigsoft » Mon Apr 04, 2011 2:36 pm

Hello,
No, SynchronizeIt currently does not have any filters that could help in such case. If you actually have only few root renamed folders, you could try to make another folder with hardlinks to SubfolderN.

rfossella
Posts: 10
Joined: Fri Mar 11, 2011 6:27 pm

Re: Comparing Folders with different names

Postby rfossella » Wed Apr 06, 2011 6:50 am

Thanks for your reply. I have a work-around for this when running from a command line. I created DOS batch program that ensures the target and source folders have the same names -- that is -- I copy the test folders (with T_) to a temp location with the T_ removed. Since all other folder and file names are the same this works well for me.

If anyone else needs assistance w/this I can post or forward the bat files I created.

Rob

grigsoft
Site Admin
Posts: 1671
Joined: Tue Sep 23, 2003 7:37 pm

Re: Comparing Folders with different names

Postby grigsoft » Thu Apr 07, 2011 9:20 am

if your folders are on NTFS, I would recommend creating folder hardlinks. Then you can avoid copying.

rfossella
Posts: 10
Joined: Fri Mar 11, 2011 6:27 pm

Re: Comparing Folders with different names

Postby rfossella » Sat Apr 09, 2011 4:57 am

I'm not sure that hard links would help me since the comparison folder(s) always change, although they will always include prefix - T_

The user is presented with prompt to enter folder location so I believe I am still forced to do a copy. Does that sound right?

Thanks for your help!

Robert


Return to “Compare It: Bug reports”

Who is online

Users browsing this forum: No registered users and 1 guest