<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ZMContext</title><link>https://sourceforge.net/p/webhubapplianceps/wiki/ZMContext/</link><description>Recent changes to ZMContext</description><atom:link href="https://sourceforge.net/p/webhubapplianceps/wiki/ZMContext/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 16 Jun 2015 04:14:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/webhubapplianceps/wiki/ZMContext/feed" rel="self" type="application/rss+xml"/><item><title>ZMContext modified by href</title><link>https://sourceforge.net/p/webhubapplianceps/wiki/ZMContext/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,7 +1,21 @@
 How to use PowerShell to get the ZaphodsMap Context
 ================
+
+If you want to have one PS1 script that acts differently depending on which machine it 
+is running on, and you use [ZaphodsMap](http://www.ZaphodsMap.com/), then you can load 
+the default "context" into a string which you subsequently use for conditional processing.
+
+Loading the default context is done like this:

 ~~~~~~
 $ZMContext=&amp;amp;($env:ZaphodsMap + 'ZMLookup.exe') /DefaultContext 2&amp;gt;&amp;amp;1
 echo ("ZMContext is " + $ZMContext)
 ~~~~~~
+
+Example usage for conditional processing:
+
+~~~~~~
+   if ($ZMContext -eq 'PRODUCTION')    { Set-Location "D:\Path1\Path2\WebHubDemos" }
+   if ($ZMContext -eq 'DEVEL')         { Set-Location "D:\Projects\WebHubDemos" }
+~~~~~~
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">href</dc:creator><pubDate>Tue, 16 Jun 2015 04:14:42 -0000</pubDate><guid>https://sourceforge.netc3e208298d9a180aa9a74aae41b1ac9eb85b88c1</guid></item><item><title>ZMContext modified by href</title><link>https://sourceforge.net/p/webhubapplianceps/wiki/ZMContext/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="how-to-use-powershell-to-get-the-zaphodsmap-context"&gt;How to use PowerShell to get the ZaphodsMap Context&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;ZMContext&lt;/span&gt;&lt;span class="x"&gt;=&amp;amp;(&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;env&lt;/span&gt;&lt;span class="x"&gt;:ZaphodsMap + 'ZMLookup.exe') /DefaultContext 2&amp;gt;&amp;amp;1&lt;/span&gt;
&lt;span class="x"&gt;echo ("ZMContext is " + &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;ZMContext&lt;/span&gt;&lt;span class="x"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">href</dc:creator><pubDate>Tue, 16 Jun 2015 04:10:58 -0000</pubDate><guid>https://sourceforge.net2bffcb17427ae3bc67f0d802b7c333cc9a807b95</guid></item></channel></rss>