Announcement

Collapse
No announcement yet.

Root level results

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

  • Root level results

    Can beyond compare generate a report of a root level search .

    For instance if I have the files

    C:\test\test1\test2\test3\a.txt
    C:\test\test1\test2\test3\b.txt
    C:\test\test1\test2\test3\c.txt
    C:\test\test1\test2\test3\d.txt

    D:\test\test1\test2\test3\a.txt
    D:\test\test1\test2\test3\b.txt
    D:\test\test1\test2\test3\c.txt
    D:\test\test1\test2\test3\d.txt .
    wherein the files a.txt , b.txt , c.txt , d.txt are all different in each directory .

    If I use beyond compare to get the differences between C:\test & D:\test , can it generate a report showing the differences between all the files.

  • #2
    Yes, Beyond Compare automatically compares subfolders.

    To generate a report listing the names of files that are different in the Folder Compare:
    Edit > Expand All.
    Session > Folder Compare Report.

    To generate a report listing different lines of text within files in the Folder Compare:
    Edit > Expand All.
    Edit > Select All Files.
    Actions > File Compare Report.
    Chris K Scooter Software

    Comment


    • #3
      Can I achieve the same using command line ?

      I need a script to do the same .

      Thanks
      Shravan

      Comment


      • #4
        I am currently using the following script in a
        ************************************************** *******
        log normal "C:\Documents and Settings\sbanala\Desktop\BC2-log.txt"
        load "%1" "%2"
        expand all
        select all
        folder-report layout:side-by-side output-to:%3 output-options:html-color
        ************************************************** *******

        on the command line I give the command as
        *** BComp.exe @BCScript01.txt "C:\temp" "C:\copy of temp" "C:\temp\report.html" *****

        But this just generates a report that shows the files that are different in the folder and not the actual differences of the files.

        Please help.

        Find the report file that I am getting attached.

        Thanks
        Shravan

        Comment


        • #5
          I am currently using the following script in a
          ************************************************** *******
          log normal "C:\Documents and Settings\sbanala\Desktop\BC2-log.txt"
          load "%1" "%2"
          expand all
          select all
          folder-report layout:side-by-side output-to:%3 output-options:html-color
          ************************************************** *******

          on the command line I give the command as
          *** BComp.exe @BCScript01.txt "C:\temp" "C:\copy of temp" "C:\temp\report.html" *****

          But this just generates a report that shows the files that are different in the folder and not the actual differences of the files.

          Please help.

          Thanks
          Shravan

          Comment


          • #6
            Hello,

            The folder-report command works on the entirely loaded base folders. The text-report will work on the current selection and should generate the report you expect.

            text-report is documented in the Help menu -> Contents, under the Scripting Reference section.

            How does that work for you?
            Aaron P Scooter Software

            Comment


            • #7
              Thanks Aaron , it worked.

              Another thing .

              Now I wanna set these paths as variables and pass them to the command line in BComp.exe @BCScript01.txt "C:\temp" "C:\copy of temp" "C:\temp\report.html" .

              As in .. I want to set
              path1 = "C:\temp"
              path2 ="C:\copy of temp"
              output = "C:\temp\report.html"

              and pass them as "BComp.exe @BCScript01.txt path path2 output" .

              But this does not seem to work .

              Am attaching the batch file and the script that am using .

              BCScript01.txt is located @ "C:\program files\beyond compare 3"

              test.bat is located @ "C:\"

              Thanks
              Shravan

              Comment


              • #8
                Hello,

                If you put quotes around "path", "path2" and "output", or around the actual paths during the path = declarations, does that work for you?
                I would also recommend trying to call BComp.exe on the command line as a single command line call to test your script before attempting to incorporate it into a bat file.

                bcomp.exe @bcscript.txt "c:\temp" "c:\copy of temp" "c:\temp\report.html"
                Aaron P Scooter Software

                Comment


                • #9
                  Thanks Aaron ,

                  It works .

                  Now I have a new issue.

                  When I have actually tested this on the demo servers the output file that was generated was crashing when opened.

                  The probable reason that am guessing was due to the bulkiness of the file.

                  Is there any work around for this and any ways that I can overcome this.

                  I wish I could attach the output file for your reference but thats around 350 mb .

                  Hope to get a solution soon !

                  Thanks
                  Shravan

                  Comment


                  • #10
                    You could run a couple of script calls, each of which uses filters to narrow down the folders shown or different base folders to make the overall comparison smaller. Two example filters could be:
                    [a-m]*\
                    and
                    -.\*.*;-[a-m]*\

                    So one script call shows a-m folders, and the base folder files, while the next script call shows everything else.
                    Aaron P Scooter Software

                    Comment

                    Working...
                    X