<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/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>Garrett Serack: Open Source Development at Microsoft : Vista</title><link>http://blogs.msdn.com/garretts/archive/tags/Vista/default.aspx</link><description>Tags: Vista</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Scripting: Detecting the host architecture vs the process architecture</title><link>http://blogs.msdn.com/garretts/archive/2006/08/04/688788.aspx</link><pubDate>Fri, 04 Aug 2006 22:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:688788</guid><dc:creator>GarrettS</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/garretts/comments/688788.aspx</comments><wfw:commentRss>http://blogs.msdn.com/garretts/commentrss.aspx?PostID=688788</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-fareast-language: ZH-CN"&gt;&lt;FONT face=Calibri&gt;I had some trouble lately with scripts running on a 64bit version of Vista, when they were run with a 32 bit parent host process.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-fareast-language: ZH-CN"&gt;&lt;FONT face=Calibri&gt;After figuring out what was wrong, I wanted to be able to detect if I was running a 32-bit script engine under a 64-bit OS. With a bit of crafty (crufty?) coding, I came up with the following VBScript which I put at the top of my script:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;sub&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; EnsureNativeScriptEngine&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;On&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;Error&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;resume&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;next&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;dim&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; WshShell,WshProcEnv,system_architecture, process_architecture&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; WshShell =&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;CreateObject(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"WScript.Shell"&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; WshProcEnv = WshShell.Environment(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"Process"&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;process_architecture= WshProcEnv(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"PROCESSOR_ARCHITECTURE"&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; process_architecture = &lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"x86"&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;then&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;system_architecture= WshProcEnv(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"PROCESSOR_ARCHITEW6432"&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; system_architecture = &lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;""&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;then&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;system_architecture = &lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"x86"&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;end&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;else&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;system_architecture = process_architecture&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;end&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; system_architecture = process_architecture &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;then&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;WshShell.popup &lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"This script should be run as a "&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&amp;amp; system_architecture &amp;amp; _&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;"process, but is running as a "&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&amp;amp; process_architecture &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #7f007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;" process."&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;WScript.quit &lt;/SPAN&gt;&lt;SPAN style="COLOR: #007f7f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;end&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;end&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #00007f; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;sub&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;FONT size=2&gt;EnsureNativeScriptEngine&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-family: Consolas"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-fareast-language: ZH-CN"&gt;&lt;FONT face=Calibri&gt;Which is fine and dandy, except I’d really have liked to just transparently execute the script with the right version of the script host.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-fareast-language: ZH-CN"&gt;&lt;o:p&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-fareast-language: ZH-CN"&gt;&lt;FONT face=Calibri&gt;Ah well, at least this tells me what’s going on. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Wingdings; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-char-type: symbol; mso-symbol-font-family: Wingdings; mso-fareast-language: ZH-CN; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;J&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-fareast-language: ZH-CN"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class=MsoNormalTable style="WIDTH: 6.45in; BORDER-COLLAPSE: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184" cellSpacing=0 cellPadding=0 width=619 border=0&gt;
&lt;TBODY&gt;
&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes"&gt;
&lt;TD style="BORDER-RIGHT: #f0f0f0; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #f0f0f0; WIDTH: 77.4pt; PADDING-TOP: 0in; BORDER-BOTTOM: #f0f0f0; BACKGROUND-COLOR: transparent" vAlign=top width=103&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=center&gt;&lt;A name=_MailAutoSig&gt;&lt;SPAN style="FONT-SIZE: 72pt; FONT-FAMILY: 'Elephant','serif'; mso-bidi-font-family: Tunga; mso-font-kerning: 8.0pt; mso-no-proof: yes"&gt;g&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="FONT-SIZE: 72pt; FONT-FAMILY: 'Elephant','serif'; mso-bidi-font-family: Tunga; mso-font-kerning: 8.0pt; mso-no-proof: yes; mso-fareast-font-family: Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;/SPAN&gt;
&lt;TD style="BORDER-RIGHT: #f0f0f0; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #f0f0f0; WIDTH: 387pt; PADDING-TOP: 0in; BORDER-BOTTOM: #f0f0f0; BACKGROUND-COLOR: transparent" vAlign=top width=516&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="mso-no-proof: yes"&gt;&lt;BR&gt;&lt;BR style="mso-special-character: line-break"&gt;&lt;BR style="mso-special-character: line-break"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="mso-no-proof: yes; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes"&gt;Garrett Serack&amp;nbsp;|&amp;nbsp;Program Manager&amp;nbsp;| Connected Identity and Directory| Microsoft Corporation&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A title=mailto:garretts@microsoft.com href="mailto:garretts@microsoft.comblog" target=_blank&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes"&gt;blog&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes"&gt;: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A title=http://blogs.msdn.com/garretts href="http://blogs.msdn.com/garretts" target=_blank&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: purple; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes"&gt;http://blogs.msdn.com/garretts&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes; mso-fareast-font-family: Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=688788" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/garretts/archive/tags/scripting/default.aspx">scripting</category><category domain="http://blogs.msdn.com/garretts/archive/tags/Vista/default.aspx">Vista</category></item></channel></rss>