Sub folder question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prince76
    Visitor
    • Mar 2017
    • 4

    Sub folder question

    Hi

    I have read a lot of post but I think this my request nobody ask to this forum for a possible solution.
    This is my request if possible. I have this scenario:

    c:\example

    in this folder I have this subfolder

    c:\example\carl\- 01 -
    c:\example\richard\- 02 -
    c:\example\helena\- 03 -
    c:\example\stephan\- 02 -
    c:\example\morgan\- 04 -
    c:\example\mary\ - 03 -

    I need to create a script for compare/copy only folder with subfolder "- 02 -"
    Final result will be:

    c:\example\richard\- 02 -
    c:\example\stephan\- 02 -

    The other folder name must be exclude

    Is this possible?

    Thanks for an help

    Prince
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Yes, it's possible to copy only subfolders named "- 02 -" using a name filter.

    filter "-.\*;...\- 02 -\"
    load c:\example
    expand all
    select left.files
    copyto left path:base c:\folder1
    Chris K Scooter Software

    Comment

    • Prince76
      Visitor
      • Mar 2017
      • 4

      #3
      Originally posted by Chris
      Yes, it's possible to copy only subfolders named "- 02 -" using a name filter.

      filter "-.\*;...\- 02 -"
      load c:\example
      expand all
      select left.files
      copyto left path:base c:\folder1
      Thanks for feedback.
      Yes, this solution copy only the subfolder - 02 - but i need to copy every parent folder contain - 02 - folder.
      Don't know if this possible

      Thanks

      Comment

      • Chris
        Team Scooter
        • Oct 2007
        • 5538

        #4
        Sorry, I don't think it's possible using a Beyond Compare script.

        Interactively, you can use the same filter, then use the Actions > Copy To Folder command and check "Include hidden items in operation" in the confirmation dialog to copy the entire contents of the parent folders. "Include hidden items in operation" isn't exposed to scripting.
        Chris K Scooter Software

        Comment

        • Prince76
          Visitor
          • Mar 2017
          • 4

          #5
          Thanks for feedback.

          Other quick question related. Need to compare a lot of folder and subfolders. I see on the left of the screen all the folders expanded but i see all file also. This will generate a very huge list. Is It possible expand only all folders but when i select the compare Thema, the file will be included also?

          This is help me a lot for my first post here

          Thanks

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 16009

            #6
            Hello,

            Using the interface, you can remove all files using the Show None display filter (added from the Options dialog, Toolbars/etc section, dropdown: Text Compare -> search for Show None), or using a file name filter of -*.*, and the View menu -> Always Show Folders view mode. However, once filtered out, the files are not included as part of the comparison, so after reviewing the folder structure you would need to disable the filter to then run the comparison.
            Aaron P Scooter Software

            Comment

            Working...