LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Refererring to user name of current user in file locations

    Employee
    Posted 09-03-2013 02:19

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: aop

    Hi!

    Is there a way to be able to use aliases (e.g. %username%) typically available in Windows in directory names when specifying locations for input or output nodes? So if my user name is name1 then setting output directory to C:\Users\%username%\OUTPUT would automatically refer to C:\Users\Name1\OUTPUT (usually works in windows applications)? I'm aware of parameters in BRE but I'm looking for a solution where the parameters wouldn't even be needed.


  • 2.  RE: Refererring to user name of current user in file locations

    Employee
    Posted 09-03-2013 04:06

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    Hey,

    I'm not sure if this is a recommended way for solving such issues, or if there is a better way, but the following should work (note: Will only work on a desktop install):

    1. Locate your setBrainEnv.bat file in you LAE Installation directory
    2. Edit this
    3. Add the line:
      set p_ls_winuser=%username%
    4. Save and exit setBrainEnv.bat
    5. Restart the server - note: This requires exiting the server and restarting, not just restarting via the server console since the setBrainEnv.bat is only used on startup of the server console
    6. Open BRE & connect to the server who's configuration you have just edited
    7. Access the parameter via {{%ls.winuser%}}
    E.g. For step 7, in a static data node, you can enter:
    user:string
    {{%ls.winuser%}}

    Regards,
    Tim.