Announcement

Collapse
No announcement yet.

Using the names of Named Sessions in batch files

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

  • Aaron
    replied
    Case insensitive. We do not allow duplicate names with only a case difference for sessions.

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:


  • Aaron
    replied
    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.

    Leave a comment:


  • Lummo
    started a topic Using the names of Named Sessions in batch files

    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
Working...
X