No announcement yet.

Compare file list to folder list.

  • Time
  • Show
Clear All
new posts

  • Compare file list to folder list.

    I'm trying to compare a list of xml files in one folder to corresponding subfolders in another folder.
    e.g., left side has

    right side has folders:

    Is there a way to do this with the alignment override? I tried *.xml against *_files


  • #2
    There may be a more elegant way... but I usually just open a command prompt to the folder containing the files and dump the directory listing to a file with a command something like this:

    DIR /B > dir.txt

    Then compare that file with my other list of file names.
    BC v4.0.7 build 19761


    • #3

      Alignment Overrides would work if they are in the same level of subfolder, but not if some are in a subfolder level and some are not.

      Could you give a more specific example of the directory structure? What are your current base folders (the folder paths at the top), and then where are the files in specific subfolders?

      If you would like, you can email a private response to [email protected] . Please include the link back to this forum post as well, so we can see the history when checking the email.
      Aaron P Scooter Software


      • #4
        Hmmm... perhaps I read the original post too literally. When I read "compare a list of xml files" I assumed that it meant a textual list in a text file.
        BC v4.0.7 build 19761


        • #5
          A screenshot could help clarify the objects to be compared, and how they are currently loaded in his base folders. His current description could mean a couple of different things.
          Aaron P Scooter Software


          • #6
            Hi, sorry for the delay replying.

            Yes, I see the original post can be interpreted. I'm looking to compare existence of files to the corresponding folder. The contents don't apply (a file doesn't compare to a folder inherently), so this would be orphan checking.

            See the attached screenshot. I'm processing xml files into the corresponding folders. In this case, the abc, def, ghi were completed, but the jkl had failed. I'm looking to detect this so I know which ones to reprocess.

            I'm hoping to align the abc.xml with abc_files, etc. That would leave jkl.xml hanging as an orphan.

            I tried aligning *.xml with *_files



            • #7
              It isn't possible to align files with folders in Beyond Compare.

              Michael's suggestion to dump directory listings to text files using "DIR /B > dir.txt", then comparing the text files in the Text Compare is your best option with Beyond Compare.
              Chris K Scooter Software


              • #8
                Hmmm, I suspect that the *.xml files are used by his production tools to control the making of output files, and Bob seems to be looking to verify that the production tools ran properly by making sure there's a directory to match each .xml file.

                In that case he may want to dir the "dir /b" thing with both sides, and then use a replacement rule so that the strings "jkl.xml" and "jkl_dir" line up when he compares the listings. This is probably what Chris and Michael are saying, but there was room for interpretation in their replies, too.



                • #9
                  Thanks - that is what I'm up to, and the" dir /b" thing will work. This is a one-time batch, so for now, I don't need an ongoing solution.