Recursing folders from script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiptinui
    New User
    • May 2006
    • 1

    Recursing folders from script

    Hey there, I've got a script written for BC2. I want it to point at two folders, then recurse through each one and compare xml files in the similar paths.

    The trees will be identical, eg.

    RootFolder1 contains FolderA and FolderB
    RootFolder2 contains FolderA and FolderB.

    The script should do a folder comparison, taking into account only xml files. I've pasted my script below. At the moment it's not doing the comparison - if I make a change in RootFolder1\FolderA\File1.xml, it won't register as different to RootFolder2\FolderA\File1.xml.

    Any suggestions?

    Code:
    log verbose append:projectlog%date%.txt
    
    #compare the text contents of the files
    
    criteria rules-based
    
    #only compare xml files
      
    filter "*.xml"
    
    load d:\RootFolder1 d:\RootFolder2
    expand all
    
    folder-report layout:summary &
    options:display-mismatches,column-attributes,column-timestamp,column-size &
    output-to:projectreport.txt
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: Recursing folders from script

    The script looks correct.

    What type of changes are you making in the XML files when they don't show up?

    If you compare the files using BC interactively, do the files show as different?
    Chris K Scooter Software

    Comment

    Working...