How to load a session from command line batch script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Murthy
    New User
    • Nov 2014
    • 1

    How to load a session from command line batch script

    Hi,
    I am running a folder comparision from command line using a batch script, but when I used below lines in my script ( I am running a parameter as a APP name while running the script) I am g

    #load app session
    load "%APP%"

    Error:
    17.11.2014 18:22:46 >> #load app session
    17.11.2014 18:22:46 >> load "Sample-app_loninvsdrm1.uk.db.com"
    17.11.2014 18:22:47 Load comparison: <->
    17.11.2014 18:22:47 Fatal Scripting Error: Unable to load base folder
    17.11.2014 18:22:47 Script completed in 0,01 seconds

    As session information is stored in %APPDATA% in windows by default, it seems it is not able to get the session name. Could you please help me to resolve how I can load my session correctly?

    Many Thanks,
    Murthy
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    BC Scripting only supports loading Folder Compare session types. Is the saved session you are trying to load a Folder Compare session?

    I would also suggest first loading the session name explicitly as
    load "Session name here"

    Once this is working, expand to use parameters from the command line:
    bcompare.exe "@c:\bcscript.txt" "session name here"

    with
    load "%1"
    Aaron P Scooter Software

    Comment

    Working...