MicroStation Configuration using Windows Environment Variables

I am trying to use the windows Environment Variable %USERNAME% in my configuration file(s) but it does not seem to work.  Is there a trick to this? I something blocking it from working?  When I use the %USERNAME% in the configuration that is what show in the configuration dialog not resultant system username that would allow me to point to C:\Users\mlongstreet\...

Parents
  • I am trying to use the windows Environment Variable %USERNAME%

    We can't see your configuration so it's hard to comment.

    However, in a MicroStation configuration file you use a Windows environment variable with the same syntax as if it were a MicroStation configuration variable...

    MY_FOLDER1 = //ServerName/Projects/YourNameHere/ # literal
    MY_FOLDER2 = //ServerName/Projects/$(USERNAME)/ # substitute Windows variable
    

    That is, you don't use percent (%) signs to bracket the variable – that's a Windows requirement not a MicroStation requirement.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Mike Longstreet 

Reply
  • I am trying to use the windows Environment Variable %USERNAME%

    We can't see your configuration so it's hard to comment.

    However, in a MicroStation configuration file you use a Windows environment variable with the same syntax as if it were a MicroStation configuration variable...

    MY_FOLDER1 = //ServerName/Projects/YourNameHere/ # literal
    MY_FOLDER2 = //ServerName/Projects/$(USERNAME)/ # substitute Windows variable
    

    That is, you don't use percent (%) signs to bracket the variable – that's a Windows requirement not a MicroStation requirement.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Mike Longstreet 

Children