<?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: How-to map network drives based on network location</title>
	<atom:link href="/2009/04/14/how-to-map-network-drives-based-on-network-location/feed" rel="self" type="application/rss+xml" />
	<link>/2009/04/14/how-to-map-network-drives-based-on-network-location</link>
	<description>Cars, Computers, and trying new things</description>
	<lastBuildDate>Sun, 24 Oct 2010 15:30:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Shadowcat</title>
		<link>/2009/04/14/how-to-map-network-drives-based-on-network-location/comment-page-1#comment-11603</link>
		<dc:creator>Shadowcat</dc:creator>
		<pubDate>Sat, 02 May 2009 18:33:21 +0000</pubDate>
		<guid isPermaLink="false">/?p=806#comment-11603</guid>
		<description>Hey there! I did a bit of searching around and I couldn&#039;t find any pre-built applications that did this. Not to say that there aren&#039;t any. Seems weird to me that someone hasn&#039;t solved this once and for all already.

My first thought when you said this was thinking back actually to what Shaun showed me of Windows 7 last night. It seems that since it allows you to associate a network with a pre-built environment of &quot;Work&quot; or &quot;Home&quot; that those should also allow you to curtail settings based on that configuration. But I still use Windows XP, so if there is something like that you would know more about it than I.

However, barring that idea, I found this site over on Microsoft&#039;s Tech Net: http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar08/hey0304.mspx (a piece of advice, after you read the question just scroll right down to the first code block, everything else is crap) showing you how to accomplish this using VB. It seems pretty sound, and I think that it would allow you to accomplish what you&#039;re trying to do. He also does you the favor of explaining just about every line that he codes. In his example he maps/remaps the H drive to different locations, but you would just substitute that out with multiple drives for each of the case statements. Furthermore, I believe that this script would actually allow you to map both drives if you had access to both networks (vpn?) which would be super cool.

I don&#039;t know a whole lot about Windows programming, but ideally you would want to attach this script to some sort of network event so that each time you added or lost a connection it would re-evaluate your network drive setup, but apart from that you could also run it at startup, shutdown, or just put it on your desktop and double-click it from time to time.

Let me know how this goes for you!</description>
		<content:encoded><![CDATA[<p>Hey there! I did a bit of searching around and I couldn&#8217;t find any pre-built applications that did this. Not to say that there aren&#8217;t any. Seems weird to me that someone hasn&#8217;t solved this once and for all already.</p>
<p>My first thought when you said this was thinking back actually to what Shaun showed me of Windows 7 last night. It seems that since it allows you to associate a network with a pre-built environment of &#8220;Work&#8221; or &#8220;Home&#8221; that those should also allow you to curtail settings based on that configuration. But I still use Windows XP, so if there is something like that you would know more about it than I.</p>
<p>However, barring that idea, I found this site over on Microsoft&#8217;s Tech Net: <a href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar08/hey0304.mspx" rel="nofollow">http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar08/hey0304.mspx</a> (a piece of advice, after you read the question just scroll right down to the first code block, everything else is crap) showing you how to accomplish this using VB. It seems pretty sound, and I think that it would allow you to accomplish what you&#8217;re trying to do. He also does you the favor of explaining just about every line that he codes. In his example he maps/remaps the H drive to different locations, but you would just substitute that out with multiple drives for each of the case statements. Furthermore, I believe that this script would actually allow you to map both drives if you had access to both networks (vpn?) which would be super cool.</p>
<p>I don&#8217;t know a whole lot about Windows programming, but ideally you would want to attach this script to some sort of network event so that each time you added or lost a connection it would re-evaluate your network drive setup, but apart from that you could also run it at startup, shutdown, or just put it on your desktop and double-click it from time to time.</p>
<p>Let me know how this goes for you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>