Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2010
    Location
    Otaki, New Zealand
    Posts
    7

    Default Using the names of Named Sessions in batch files

    I'm automating some of my folder synchronisations. I have a script containing:

    # Load the Date Compare session.
    load "\\I7-3770\htdocs <--> D:\htdocs"


    Problem is that BC complains that it can see two "\\I7-3770\htdocs <--> D:\htdocs" sessions. It's right! I have my named session folders structured:


    Content Comparisons

    ...
    \\I7-3770\htdocs <--> D:\htdocs
    ...

    Date Comparisons

    ...
    \\I7-3770\htdocs <--> D:\htdocs
    ...


    Is there a syntax for referencing the 'folder' tree when loading named sessions?

    regards,
    Lummo

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,680

    Default

    Hello,

    Yes. You would use either:
    load "Sub Folder\SessionName"
    for the path in a sub folder or
    load ".\SessionName"
    for a session on the base level.
    Aaron P Scooter Software

  3. #3
    Join Date
    Mar 2010
    Location
    Otaki, New Zealand
    Posts
    7

    Default

    Hello Aaron,

    Thank you for that. That worked using the "\" as a 'folder separator. BC didn't get confused by my use of the double back slash in my named session. So:

    load "i7-3770 <--> Apteryx\Date Comparisons\\\I7-3770\htdocs <--> D:\htdocs"


    worked just fine for me.

    regards,
    Lummo

  4. #4
    Join Date
    Mar 2010
    Location
    Otaki, New Zealand
    Posts
    7

    Default

    By the way, are comparisons against the path and named sessions case sensitive (as per Linux etc.) or insensitive (as per Windows)?

  5. #5
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,680

    Default

    Case insensitive. We do not allow duplicate names with only a case difference for sessions.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •