script - base folder not exists?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eisenkarl
    Visitor
    • Jul 2015
    • 4

    script - base folder not exists?

    Hi, is it possible per script to make the base folder in the target, when it is not given?
    my Script:

    log normal C:\Backup\Log.txt
    load G:\Projekt \\192.168.1.210\data1\Projekt
    select all
    sync create-empty update:right->left

    G:\ is an RDX, now i will per script make an backup to brand new RDX that has no folders

    thank you
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    You can pass arbitrary text on the command line into the script using:

    bcompare.exe "@c:\bcscript.txt" "g:\folder path\" "\\server\folder path 2\"

    Which you can then reference within the script file:
    log normal C:\Backup\Log.txt
    load "%1" "%2"
    select all
    sync create-empty update:right->left


    The quotes help capture whitespaces. Detailed documentation is found in the Help file, Using Beyond Compare, Scripting chapter.
    Let us know if you have any questions.
    Aaron P Scooter Software

    Comment

    Working...