Select Folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • captedgar
    Enthusiast
    • Nov 2009
    • 31

    Select Folder

    Hi there

    My BCSCript.txt file which calls the BC2.exe looks as follows

    Code:
     
     option confirm:yes-to-all
     filter "-.\bin\"
     load "%tempfolder%\Folder1.compiled" "\\%1\g$\Folder1"
     log verbose
     expand all
     select all
     compare binary
     select left.diff.all left.orphan.all left.newer.files
     copyto lt path:base "%tempfolder%\Crunched\Folder1.compiled"
    This is all working fine and well.

    Is it possible to copy the "bin" folder on the left side which was excluded in the above compare onto "%tempfolder%\Crunched\Folder1.compiled\bin"
    I tried something like this and didn;t work

    Code:
     
     select left.bin
     copyto lt path:base "%tempfolder%\Crunched\Folder1.compiled\bin"
    can u please advice how to copy the left bin folder as well as a part of the copying process
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    Scripting is sequential, so you could end your current script with:
    ...
    copyto lt path:base "%tempfolder%\Crunched\Folder1.compiled"
    filter "-.\*.*;.\bin\"
    select left.all
    copyto lt path:base "%tempfolder%\Crunched\Folder1.compiled\bin"

    How does that work for you?
    Aaron P Scooter Software

    Comment

    • captedgar
      Enthusiast
      • Nov 2009
      • 31

      #3
      Thanks Aaron that worked as expected

      Comment

      Working...