<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Learn Four Ways to Use PowerShell to Create Folders</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/21/learn-four-ways-to-use-powershell-to-create-folders.aspx</link><description>Microsoft Scripting Guy, Ed Wilson, shows four ways to create folders with Windows PowerShell, and he discusses the merits of each approach.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Learn Four Ways to Use PowerShell to Create Folders</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/21/learn-four-ways-to-use-powershell-to-create-folders.aspx#3508742</link><pubDate>Thu, 12 Jul 2012 15:50:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3508742</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@B-K that is a great tip ... in fact, I was not aware of that issue. It does go back to the basic idea however ... when you are writing a script, you should spell things out ... it is always safest. Thank you ... I imagine it was a bear of a thing to troubleshoot!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3508742" width="1" height="1"&gt;</description></item><item><title>re: Learn Four Ways to Use PowerShell to Create Folders</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/21/learn-four-ways-to-use-powershell-to-create-folders.aspx#3508644</link><pubDate>Thu, 12 Jul 2012 03:02:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3508644</guid><dc:creator>B-K</dc:creator><description>&lt;p&gt;Be careful using md/mkdir in scripts where Set-StrictMode is on... More details here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/5021720/powershell-mkdir-alias-set-strictmode-version-2-strange-bug-why"&gt;stackoverflow.com/.../powershell-mkdir-alias-set-strictmode-version-2-strange-bug-why&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3508644" width="1" height="1"&gt;</description></item><item><title>re: Learn Four Ways to Use PowerShell to Create Folders</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/21/learn-four-ways-to-use-powershell-to-create-folders.aspx#3482272</link><pubDate>Tue, 21 Feb 2012 16:02:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3482272</guid><dc:creator>ed wilson</dc:creator><description>&lt;p&gt;@K_Schulte no you do not HAVE to know that it is a function and not a cmdlet. But knowing that it is a function you are using, and NOT the intrinsic md command that exists in the cmd shell is important. The reason is that it helps to explain some of the differences you will find. Besides, personally, I like to know what I am doing. The more I know about what is actually going on under the covers of PowerShell the better I am able to unerstand some of the strangeness of PowerShell. The cool thing about PowerShell is that it is easy to learn, but nearly impossible to master.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3482272" width="1" height="1"&gt;</description></item><item><title>re: Learn Four Ways to Use PowerShell to Create Folders</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/21/learn-four-ways-to-use-powershell-to-create-folders.aspx#3482266</link><pubDate>Tue, 21 Feb 2012 15:46:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3482266</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;I would recommend and in fact I usually do use the &amp;quot;md &amp;lt;dir&amp;gt;&amp;quot; function most of the time. I didn&amp;#39;t realize that this a function btw. ... but do we really have to ...?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still used to the way cmd.exe works and so I don&amp;#39;t even think too much about the wonder of the &amp;quot;md&amp;quot; function in PS :-) &lt;/p&gt;
&lt;p&gt;But still ... it is great and remarkable that it returns an object to work with later on! That&amp;#39;s a crucial difference between the cmd.exe-md and the ps-md version!&lt;/p&gt;
&lt;p&gt;Klaus (Schulte)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3482266" width="1" height="1"&gt;</description></item></channel></rss>