Loading saved session (newbie)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Loading saved session (newbie)

    Hi,

    I am trying to load my existing session with the following command (any only command right now)

    load DNN Config Test

    And it fails to load the base folder!
    What actually this means? Why does it fail to do that?
  • chrroe
    Pooh-Bah
    • Oct 2007
    • 588

    #2
    Re: Loading saved session (newbie)

    Hi SevDer!

    Simply take a look at the BC-helpfile. There is a section "commandline and Scripting" where you can find a page called "Scripting Reference".
    Here the syntax of the load command is explained:

    </font><blockquote><font class="small">In Antwort auf:</font><hr />
    LOAD

    Usage:
    load <session>
    load <left path> [<right path>]
    load <default>

    Loads the specified session, the specified base folders, or the Default Session Settings (load <default>). Failure to load a base folder will cause the script to terminate.

    Loading a session causes all that session's settings, except the display filter, to be used.
    Loading base folders uses the currently active settings. By default, the program defaults are used.
    Examples:
    load MySession
    load c:\project x:\project



    [/quote]

    Hope this helps ...


    Bye
    Christoph

    Comment

    • sevder
      Journeyman
      • Sep 2005
      • 10

      #3
      Re: Loading saved session (newbie)

      Hi,

      I looked at it actually all over.
      I think I am doing it the right way(not sure of course)

      I even tried
      load <DNN Copy Test>

      but doesn't work.

      I simply want to load all settings of that session and do an update to right side.

      When I try without the session but folders and filters and all, it works. However I have so many filters and they are changing from time to time. So I would like to use the sessions full settings to perform the update.

      Now am I in the right track?

      Comment

      • chrroe
        Pooh-Bah
        • Oct 2007
        • 588

        #4
        Re: Loading saved session (newbie)

        Hi!

        You have mixed two exclusive modes. Either you write

        load <sessionname>

        or

        load <path1> <path2>

        and not

        load <sessionname> <path1> <path2>


        If you want to load a specific pair of directories with specific session settings, you can either set the dirs in the session-manager of the BC GUI, or use two load commands in the script:

        load <sessionname>
        load <path1> <path2>

        But be carefull: the bc-helpfile says:
        Loading a session causes all that session's settings, except the display filter, to be used.

        You must use the filter command separately.


        Bye
        Christoph

        Comment

        • Zoë
          Team Scooter
          • Oct 2007
          • 2666

          #5
          Re: Loading saved session (newbie)

          Christoph is right about everything except his comment on the needing to use the filter command. If you load a session by name it uses everything except the display filters. That is "Show All", "Only Mismatches", "Left Side Newer and Orphans", etc. To use those you use the select command, not the filter one. If you have filename filters like "-*.bak" in your session they will be used if you load that session by name.
          Zoë P Scooter Software

          Comment

          • sevder
            Journeyman
            • Sep 2005
            • 10

            #6
            Re: Loading saved session (newbie)

            Ok,

            My problem is, I cannot load that session.

            Do I mix any syntax over here or it does not accept session names that has spaces.

            The only line right now I have is:
            load <DNN Config Test>

            and this is giving the error, unable to load base folder!


            Do you know why this is happening?
            -Is it because of spaces in session name?
            -Or is it because this session loads left hand side from a network mapped folder into right ftp folder?

            Comment

            • Zoë
              Team Scooter
              • Oct 2007
              • 2666

              #7
              Re: Loading saved session (newbie)

              Sorry, I missed this earlier. The session name should be enclosed in quotes, not <> signs. When you see that in the script reference it means replace that item, including the <> signs, with a real name/path.
              Zoë P Scooter Software

              Comment

              • sevder
                Journeyman
                • Sep 2005
                • 10

                #8
                Re: Loading saved session (newbie)

                Now that helped.

                But note that even in the reference(and knowledge base) your example is the following :

                load MySession
                load c:\project x:\project

                Which is not:
                load "MySession"
                load "c:\project" "x:\project"

                Thanks,
                This solved my problem.

                Comment

                • Chris
                  Team Scooter
                  • Oct 2007
                  • 5538

                  #9
                  Re: Loading saved session (newbie)

                  Quotes are only required for session names and paths that include spaces.

                  load MySession is valid, but load "My Session" requires quotes, and the same thing goes for paths.

                  It would be helpful if the documentation included both examples, I'll make a note to add it to a future release of the docs.
                  Chris K Scooter Software

                  Comment

                  • chrroe
                    Pooh-Bah
                    • Oct 2007
                    • 588

                    #10
                    Re: Loading saved session (newbie)

                    @ Craig

                    The filter thing should be pointed out in the helpfile, too.

                    Even such an enthusiast like me trapped in ...




                    Bye
                    Christoph

                    Comment

                    • Chris
                      Team Scooter
                      • Oct 2007
                      • 5538

                      #11
                      Re: Loading saved session (newbie)

                      Thanks for the suggestion Christoph. I added it to our help file todo list.
                      Chris K Scooter Software

                      Comment

                      • Regressie
                        Journeyman
                        • Oct 2008
                        • 15

                        #12
                        Originally posted by Craig
                        Sorry, I missed this earlier. The session name should be enclosed in quotes, not <> signs. When you see that in the script reference it means replace that item, including the <> signs, with a real name/path.
                        Maybe you could also mention this in the Helpfile, how we should interpret the <>'s , the []'s, the ()'s, the "'s, the %'s etcetera.

                        Because I still don't know what to do with these: [] and these: () when they are mentioned in the help texts. And it's essential, because the script doesn't run with 1 wrong character in it.

                        i.e.:
                        load [createall|left|right)] <left path> [<right path>]

                        should I then write something like this? (writing it as the Help prescribes us)
                        load [createleft)] c:\folder1 [c:\folder2]

                        or like this? (meaning that [] is optional)
                        load c:\folder1

                        or this? (leaving out [])
                        load createleft) c:\folder1 c:\folder2

                        Comment

                        • Aaron
                          Team Scooter
                          • Oct 2007
                          • 16000

                          #13
                          I notice your Signature indicates you are using BC3.1.4, but this is the BC2 forum. Which version were you asking about?

                          We are working on making the script a bit more clear for BC3. Are you running into any specific problems?
                          Aaron P Scooter Software

                          Comment

                          • Regressie
                            Journeyman
                            • Oct 2008
                            • 15

                            #14
                            Actually I was referring to the text in the Help file. I'm using BC3 indeed, maybe I'd better posted it there then... Anyways.

                            The problem that I was searching the forums for (I searched both BC2 and BC3 forums because I thought it might have been discussed long ago) is that I am able to load a folder compare session, but I can't seem to load a data compare session in my script.

                            I think I can load a folder compare and perform data compares based on the results of the folder compare, but I need those data compares to use the session settings that I specified in the GUI (most of all the key columns and unimportant columns).

                            Sorry for my somewhat chaotic reply...
                            Kind regards.

                            Comment

                            • Michael Bulgrien
                              Carpal Tunnel
                              • Oct 2007
                              • 1772

                              #15
                              Originally posted by Regressie
                              i.e.:
                              load [create:(all|left|right)] <left path> [<right path>]
                              The syntax used in the help file is pretty standard.

                              <> represents user-defined text (or literals). The text between the angle brackets describes what type of information the user should specify in that spot.

                              () indicates a defined set of possible values. The | symbol is a delimiter for the values in the set.

                              [] indicates an optional component of the command. Since it is not required, you may use it or leave it out.

                              None of these symbols (angle brackets, parentheses, square brackets, or pipe symbols) are a part of the actual syntax and they should not be coded in the script.
                              Last edited by Michael Bulgrien; 10-Aug-2009, 10:06 PM.
                              BC v4.0.7 build 19761
                              ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

                              Comment

                              Working...