<?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: Files in a Folder (VBA)</title>
	<atom:link href="http://code.xmlgadgets.com/index.php/2008/01/05/files-in-a-folder-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/</link>
	<description>A Developer blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:58:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Karthik</title>
		<link>http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/comment-page-1/#comment-1012</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Thu, 26 Jan 2012 11:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/#comment-1012</guid>
		<description>Thanks Selva. The DOS way of doing it is the best one.</description>
		<content:encoded><![CDATA[<p>Thanks Selva. The DOS way of doing it is the best one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selvakumar</title>
		<link>http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/comment-page-1/#comment-1007</link>
		<dc:creator>Selvakumar</dc:creator>
		<pubDate>Wed, 25 Jan 2012 08:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/#comment-1007</guid>
		<description>There is also a DOS way of doing it.

 navigate to the directory using command prompt 
____&gt; cd &quot;c:\windows&quot;

and issue the below command
____&gt; DIR &gt; filelist.txt</description>
		<content:encoded><![CDATA[<p>There is also a DOS way of doing it.</p>
<p> navigate to the directory using command prompt<br />
____&gt; cd &#8220;c:\windows&#8221;</p>
<p>and issue the below command<br />
____&gt; DIR &gt; filelist.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selvakumar</title>
		<link>http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/comment-page-1/#comment-1006</link>
		<dc:creator>Selvakumar</dc:creator>
		<pubDate>Wed, 25 Jan 2012 08:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://code.xmlgadgets.com/2008/01/05/files-in-a-folder-vba/#comment-1006</guid>
		<description>Another way to do it (with a small basic macro)


Dim temparray(5000, 1)
Path = &quot;C:\WINDOWS\&quot;

MyFile = Dir$(Path, vbDirectory)

inx = 1
Do While MyFile &lt;&gt; &quot;&quot;
    temparray(inx, 0) = MyFile
    MyFile = Dir$
    inx = inx + 1
Loop

For i = 1 To inx
    tp = &quot;A&quot; &amp; i
    Range(tp).Value = temparray(i, 0)
Next i
</description>
		<content:encoded><![CDATA[<p>Another way to do it (with a small basic macro)</p>
<p>Dim temparray(5000, 1)<br />
Path = &#8220;C:\WINDOWS\&#8221;</p>
<p>MyFile = Dir$(Path, vbDirectory)</p>
<p>inx = 1<br />
Do While MyFile &lt;&gt; &#8220;&#8221;<br />
    temparray(inx, 0) = MyFile<br />
    MyFile = Dir$<br />
    inx = inx + 1<br />
Loop</p>
<p>For i = 1 To inx<br />
    tp = &#8220;A&#8221; &amp; i<br />
    Range(tp).Value = temparray(i, 0)<br />
Next i</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.408 seconds -->

