Announcement

Collapse
No announcement yet.

Compare file list to folder list.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Compare file list to folder list.

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

    right side has folders:
    abc_files
    def_files
    ghi_files

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

    Thanks,
    Bob

  • #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
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    Comment


    • #3
      Hello,

      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

      Comment


      • #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
        ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

        Comment


        • #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

          Comment


          • #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

            Thanks,
            Bob

            Comment


            • #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

              Comment


              • #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.

                /dps

                Comment


                • #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.

                  Bob

                  Comment

                  Working...
                  X