<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Update Windows Path Without Rebooting</title>
	<atom:link href="http://www.nerdydork.com/update-windows-path-without-rebooting.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html</link>
	<description>Dustin Davis reviews... the internet.</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:23:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bobo</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7926</link>
		<dc:creator>Bobo</dc:creator>
		<pubDate>Thu, 29 Dec 2011 12:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7926</guid>
		<description>I&#039;ve been using setx.exe for several years now and today I noticed something new.

If you run setx in a bat script, it works and everything seems ok, start a new command prompt and i see the variable, it&#039;s in the GUI and so on.

If I then start another bat script with double click after that, that can&#039;t find the environment variable, if i start a command prompt and then start the bat script it finds the environment variables.

And of course, if I restart the computer it works.

So it seems like the interpreter for batch files doesn&#039;t update it&#039;s environment between you run the script.

It doesn&#039;t help if I try to reload the bat script with a cmd /c &quot;
This is on Windows server 2008 R2.

Is there anyone that has a solution for this?

For now I&#039;ve to read out the variables from the registry in the scripts I run after the one that sets the environment variables.
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using setx.exe for several years now and today I noticed something new.</p>
<p>If you run setx in a bat script, it works and everything seems ok, start a new command prompt and i see the variable, it&#8217;s in the GUI and so on.</p>
<p>If I then start another bat script with double click after that, that can&#8217;t find the environment variable, if i start a command prompt and then start the bat script it finds the environment variables.</p>
<p>And of course, if I restart the computer it works.</p>
<p>So it seems like the interpreter for batch files doesn&#8217;t update it&#8217;s environment between you run the script.</p>
<p>It doesn&#8217;t help if I try to reload the bat script with a cmd /c &#8221;<br />
This is on Windows server 2008 R2.</p>
<p>Is there anyone that has a solution for this?</p>
<p>For now I&#8217;ve to read out the variables from the registry in the scripts I run after the one that sets the environment variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Celebritycircletv</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7925</link>
		<dc:creator>Celebritycircletv</dc:creator>
		<pubDate>Wed, 28 Dec 2011 23:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7925</guid>
		<description>my computor is saying msiexec/update .path to the. msp file &gt;/ buupdateep.msp   
 What am i supposed to do?</description>
		<content:encoded><![CDATA[<p>my computor is saying msiexec/update .path to the. msp file &gt;/ buupdateep.msp  <br />
 What am i supposed to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hmli</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7909</link>
		<dc:creator>Hmli</dc:creator>
		<pubDate>Mon, 12 Dec 2011 22:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7909</guid>
		<description>it is work in the cmd window. but not in a all other condition. I call a application from C# code, it does not work. I think it still need reboot to make it really work.</description>
		<content:encoded><![CDATA[<p>it is work in the cmd window. but not in a all other condition. I call a application from C# code, it does not work. I think it still need reboot to make it really work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sliper123</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7882</link>
		<dc:creator>sliper123</dc:creator>
		<pubDate>Wed, 09 Nov 2011 07:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7882</guid>
		<description>Re-read &quot;setx /?&quot; again, coz
setx /M PATH &quot;%PATH%;D:foobar&quot;
will give u exactly what u need</description>
		<content:encoded><![CDATA[<p>Re-read &#8220;setx /?&#8221; again, coz<br />
setx /M PATH &#8220;%PATH%;D:foobar&#8221;<br />
will give u exactly what u need</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark v</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7869</link>
		<dc:creator>Mark v</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7869</guid>
		<description>I&#039;m typing WAAAY too fast! :)

The change IS found in the GUI world - it&#039;s in the USER environment variables, not in the system environment variables.  This will limit its usefulness in some environments.

If someone can find a way to make this truly global (i.e. system level), we&#039;d have a winner!
</description>
		<content:encoded><![CDATA[<p>I&#8217;m typing WAAAY too fast! <img src='http://www.nerdydork.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The change IS found in the GUI world &#8211; it&#8217;s in the USER environment variables, not in the system environment variables.  This will limit its usefulness in some environments.</p>
<p>If someone can find a way to make this truly global (i.e. system level), we&#8217;d have a winner!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark v</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7868</link>
		<dc:creator>Mark v</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7868</guid>
		<description>This is interesting:  Although your command string does work in the command windows, the change is not visible in the usual Windows Environment Variables, as viewed through My Computer/Properties, as described above.  If the %PATH% variable is echoed at a command line, the change is seen.  It&#039;s just not there in the GUI world.</description>
		<content:encoded><![CDATA[<p>This is interesting:  Although your command string does work in the command windows, the change is not visible in the usual Windows Environment Variables, as viewed through My Computer/Properties, as described above.  If the %PATH% variable is echoed at a command line, the change is seen.  It&#8217;s just not there in the GUI world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark v</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7867</link>
		<dc:creator>Mark v</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7867</guid>
		<description>I spoke too soon.  After re-reading the setx help file, I learned that the change is NOT effective on the command window in which it is issued, but IS effective on all other command windows.  I have verified that the change is in effect in other command windows, and after reboot.

You da man!  :)

</description>
		<content:encoded><![CDATA[<p>I spoke too soon.  After re-reading the setx help file, I learned that the change is NOT effective on the command window in which it is issued, but IS effective on all other command windows.  I have verified that the change is in effect in other command windows, and after reboot.</p>
<p>You da man!  <img src='http://www.nerdydork.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark v</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7866</link>
		<dc:creator>Mark v</dc:creator>
		<pubDate>Mon, 24 Oct 2011 19:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7866</guid>
		<description>Jan, that doesn&#039;t work at ALL for me, globally or even in the command window where I issue the command.  I get &quot;SUCCESS: Specified value was saved.&quot;, but if I echo the PATH, my change is not there.</description>
		<content:encoded><![CDATA[<p>Jan, that doesn&#8217;t work at ALL for me, globally or even in the command window where I issue the command.  I get &#8220;SUCCESS: Specified value was saved.&#8221;, but if I echo the PATH, my change is not there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan-Stefan Janetzky</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7851</link>
		<dc:creator>Jan-Stefan Janetzky</dc:creator>
		<pubDate>Mon, 17 Oct 2011 14:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7851</guid>
		<description>yay. i got it working global with a pure cmd command

setx path &quot;%path%;D:foobar&quot;

type setx /? for more information about it.</description>
		<content:encoded><![CDATA[<p>yay. i got it working global with a pure cmd command</p>
<p>setx path &#8220;%path%;D:foobar&#8221;</p>
<p>type setx /? for more information about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan-Stefan Janetzky</title>
		<link>http://www.nerdydork.com/update-windows-path-without-rebooting.html/comment-page-1#comment-7850</link>
		<dc:creator>Jan-Stefan Janetzky</dc:creator>
		<pubDate>Mon, 17 Oct 2011 13:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=316#comment-7850</guid>
		<description>i have tested this. it appears it does not reload the path variable :/ (i used visual studio 2010 c++ to compile it)</description>
		<content:encoded><![CDATA[<p>i have tested this. it appears it does not reload the path variable :/ (i used visual studio 2010 c++ to compile it)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.nerdydork.com/update-windows-path-without-rebooting.html/feed ) in 0.76426 seconds, on Feb 9th, 2012 at 2:56 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 9th, 2012 at 3:56 am UTC -->
