<?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>Executing a external file (.bat, .vbs, etc) from a configuration file at start up of MicroStation?</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/135220/executing-a-external-file-bat-vbs-etc-from-a-configuration-file-at-start-up-of-microstation</link><description>We have a situation where we need to execute a file (.bat, .vbs) on MicroStation startup from an existing centralized (on a server) MicroStation Configuration File. We need to know what code we would need to add to this central file to read a external</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Executing a external file (.bat, .vbs, etc) from a configuration file at start up of MicroStation?</title><link>https://communities.bentley.com/thread/410524?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 17:35:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:afd206ff-5902-4afd-bddf-18d9de0dffb8</guid><dc:creator>Marc Thomas</dc:creator><description>As it is just a one off operation to replace out of date &amp;#39;pointer&amp;#39; files, I suggest your IT team write a batch file that copies and overwrites the existing file, then put it on a read-only server share that a user can access and run. Or you could just add a temporary group policy that would run it, removing the policy once all the machines are up to date. &lt;br /&gt;
How many machines are involved?&lt;br /&gt;
&lt;br /&gt;
Syntax:&lt;br /&gt;
IF EXIST &amp;lt;&amp;quot;Yourpath\filename.ext&amp;quot;&amp;gt; xcopy &amp;lt;&amp;quot;SourcePath\filename.ext&amp;quot;&amp;gt; &amp;lt;&amp;quot;TargetPath\filename.ext&amp;quot;&amp;gt; /&amp;lt;switches appropriate to your situation&amp;gt;&lt;br /&gt;
You may need to set it up to run as admin if the target folder is not user-writable, there is plenty of general IT advice online regarding that.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Executing a external file (.bat, .vbs, etc) from a configuration file at start up of MicroStation?</title><link>https://communities.bentley.com/thread/410300?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 14:58:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d54a4aeb-4558-43ea-b8ec-7f0b591bd33b</guid><dc:creator>SMagoon</dc:creator><description>No, this is actually to override a configuration (Pointer File) file which resides on the local computer.  This local config file is simple and only points/reads a &amp;quot;Site&amp;quot; config file (which houses our corporate variables) on a corporate Drive letter (Same data in all offices - SCCM).  The Pointer config file is already on computers with MicroStation Installed.  We want to replace this &amp;quot;Pointer&amp;quot; configuration file with a new one that points to a new place on our servers (basically to a new Site configuration file).  We were going to have the &amp;quot;old Site&amp;quot; config file replace the &amp;quot;Pointer&amp;quot; file on the local system.  Right now we just put code in the old &amp;quot;site&amp;quot; file to point to include the new &amp;quot;site&amp;quot; config file in the new location.&lt;br /&gt;
&lt;br /&gt;
For new installs we have the new pointer file installed with MicroStation (both v8i and v10) through our SCCM System.  &lt;br /&gt;
&lt;br /&gt;
Login Script might be what we need to do but we were trying to avoid this if we could.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Executing a external file (.bat, .vbs, etc) from a configuration file at start up of MicroStation?</title><link>https://communities.bentley.com/thread/410292?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 14:28:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8f03ba1b-07ca-4a30-9130-0a8e427e272f</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Is this just to copy a config redirection file after installing MicroStation?&lt;/p&gt;
&lt;p&gt;If so a simple batch file can be added to your windows login scripts. See &lt;a href="/other/old_site_member_blogs/peer_blogs/b/marc_thomass_blog/archive/2014/08/07/microstation-quickconfig-standard"&gt;MicroStation - QuickConfig Standard&lt;/a&gt; for an example of such a file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Executing a external file (.bat, .vbs, etc) from a configuration file at start up of MicroStation?</title><link>https://communities.bentley.com/thread/410182?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 17:47:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9ce1c0d8-f293-428f-a96b-b35269b8560d</guid><dc:creator>Rod Wing</dc:creator><description>&lt;p&gt;There is no way that I know of to do this from a configuration file. You might be able to accomplish what you want through a MicroStation VBA program that is configured to autoload.&lt;/p&gt;
&lt;p&gt;Another option in the config file, instead of copying a server file, is to do &amp;nbsp;&lt;strong&gt;%if &amp;nbsp;exists&lt;/strong&gt; at the server location. If it&amp;#39;s found then do a &lt;strong&gt;%include&lt;/strong&gt; to load it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>