Announcement

Collapse
No announcement yet.

Using the names of Named Sessions in batch files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


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

        Comment


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

          Comment

          Working...
          X