<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/236555/microstation-configuration-using-windows-environment-variables</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/742039?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 11:11:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cb954713-d480-48e1-9d4e-734bfa16a384</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;More suggestions for&amp;nbsp;using W&lt;span&gt;indows Environment Variables:&amp;nbsp;&lt;a href="/other/old_site_member_blogs/peer_blogs/b/marc_thomass_blog/posts/connect-edition---configuration-tips-use-of-windows-environment-variables-1181787155"&gt;CONNECT Edition - Configuration Tips: Use of Windows Environment variables&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735328?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:57:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:eb2dc183-0c06-40ac-ae8e-178b02fc5c7d</guid><dc:creator>Leonard Jones</dc:creator><description>&lt;p&gt;Select $(USERNAME) in the Message Center list and then check the value under Message Details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735327?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:54:53 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:680cfdd2-ab8e-4361-8bef-60b5a10301c4</guid><dc:creator>Mike Longstreet</dc:creator><description>&lt;p&gt;Nothing happening in the Message Details either.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/pastedimage1665053659621v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735323?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:46:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7d5c9eac-cac7-4a76-9644-27ffc2de17b5</guid><dc:creator>Leonard Jones</dc:creator><description>&lt;p&gt;Check the Message Details in the Message Center&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/4628.MC.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735322?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:41:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3ed27868-b642-4c1e-ae9b-270a94f6a818</guid><dc:creator>Mike Longstreet</dc:creator><description>&lt;p&gt;The key-in expand echo $(username) seems to not work for me.&amp;nbsp; But using $(username) in the config did work great.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/pastedimage1665052735694v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735225?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 16:44:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6b2ad8eb-4a36-4341-88b1-11c14f5c0204</guid><dc:creator>Barry Lothian</dc:creator><description>[quote userid="3080" url="~/products/microstation/f/microstation-forum/236555/microstation-configuration-using-windows-environment-variables/735219"]When I key in &amp;quot;expand echo $(username)&amp;quot; it returns $(username) not the system username.[/quote]
&lt;p&gt;Look in the Message Centre (not the status bar) and see what it returns.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735219?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 16:12:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8fad7dd6-3181-46c3-b64c-01e4208fe8ae</guid><dc:creator>Mike Longstreet</dc:creator><description>&lt;p&gt;_USTN_USERNAME is in my case defined by the System and is &amp;quot;Personal&amp;quot; when using MicroStation.&lt;/p&gt;
&lt;p&gt;_USTN_USERNAME is OpenRoadsDesigner_ when using OpenRaods so that is not really going to work well.&lt;/p&gt;
&lt;p&gt;When I key in &amp;quot;expand echo $(username)&amp;quot; it returns $(username) not the system username.&amp;nbsp; Still going to add it to the config like that and see if it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735217?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 16:02:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:347fea95-da9e-4260-a4a1-b9d94e43f589</guid><dc:creator>Mike Longstreet</dc:creator><description>&lt;p&gt;That may be the problem I was using the %USERNAME% and should be using $(USERNAME).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735212?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 15:52:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cd1b21e1-e5da-4db0-94dd-dcf28ee03a0d</guid><dc:creator>Barry Lothian</dc:creator><description>&lt;p&gt;By default, the MicroStation configuration variable _USTN_USERNAME has the same value as USERNAME, which is the Windows Environment Variable.&lt;/p&gt;
&lt;p&gt;You can test it in the key-in window using the key-in:&amp;nbsp;expand echo $(&lt;em&gt;environment variable name&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;e.g.&lt;strong&gt;&amp;nbsp;expand echo $(username)&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MicroStation Configuration using Windows Environment Variables</title><link>https://communities.bentley.com/thread/735208?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 15:43:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bd319e47-a36e-48ea-9861-9185f5804ca6</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="3080" url="~/products/microstation/f/microstation-forum/236555/microstation-configuration-using-windows-environment-variables"]I am trying to use the windows Environment Variable %USERNAME%[/quote]
&lt;p&gt;We can&amp;#39;t see your configuration so it&amp;#39;s hard to comment.&lt;/p&gt;
&lt;p&gt;However, in a MicroStation configuration file you use a Windows environment variable with the same syntax as if it were a MicroStation configuration variable...&lt;/p&gt;
&lt;pre&gt;MY_FOLDER1 = //ServerName/Projects/YourNameHere/ # literal
MY_FOLDER2 = //ServerName/Projects/$(USERNAME)/ # substitute Windows variable
&lt;/pre&gt;
&lt;p&gt;That is, you don&amp;#39;t use percent (&lt;b&gt;%&lt;/b&gt;) signs to bracket the variable &amp;ndash; that&amp;#39;s a Windows requirement not a MicroStation requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>