<?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>How Can I Determine if a Folder Exists on a Computer?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/08/19/how-can-i-determine-if-a-folder-exists-on-a-computer.aspx</link><description>Hey, Scripting Guy! Is there any way to determine whether or not a specific folder exists on a computer? -- RP, Umatilla, OR 
 Hey, RP. There are a couple ways of doing this, depending on whether you are looking for the folder on the local computer or</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Determine if a Folder Exists on a Computer?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/08/19/how-can-i-determine-if-a-folder-exists-on-a-computer.aspx#3467444</link><pubDate>Sun, 27 Nov 2011 22:50:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3467444</guid><dc:creator>Gudge</dc:creator><description>&lt;p&gt;Try this&lt;/p&gt;
&lt;p&gt;Get-WmiObject -computer Win32_directory -filter &amp;quot;filename=&amp;#39;Scripts&amp;#39; AND path=&amp;#39;\\&amp;#39;&amp;quot; | select &amp;quot;Name&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3467444" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine if a Folder Exists on a Computer?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/08/19/how-can-i-determine-if-a-folder-exists-on-a-computer.aspx#3349195</link><pubDate>Tue, 10 Aug 2010 01:43:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3349195</guid><dc:creator>if remote machine is vista, this script is not work correctly</dc:creator><description>&lt;p&gt;I use this script with remote machine is vista. So the result is 0. who can resolve this problem. Thanks a lot.&lt;/p&gt;
&lt;p&gt;strComputer = &amp;quot;atl-ws-01&amp;quot;&lt;/p&gt;
&lt;p&gt;Set objWMIService = GetObject _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\cimv2&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set colFolders = objWMIService.ExecQuery _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(&amp;quot;Select * From Win32_Directory Where &amp;quot; &amp;amp; _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;FileName = &amp;#39;Scripts&amp;#39;&amp;quot;)&lt;/p&gt;
&lt;p&gt;Wscript.Echo colFolders.Count&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3349195" width="1" height="1"&gt;</description></item></channel></rss>