<?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>Комментарии: Delphi. Получение списка всех файлов в папке и ее подпапках.</title>
	<atom:link href="http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/feed/" rel="self" type="application/rss+xml" />
	<link>http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/</link>
	<description>Заработок в интернете, форекс, психология и просто мысли.</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:27:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>Автор: Скопировать все файлы из дерева в одну папку. &#124; Elsper</title>
		<link>http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/comment-page-2/#comment-4592</link>
		<dc:creator>Скопировать все файлы из дерева в одну папку. &#124; Elsper</dc:creator>
		<pubDate>Sun, 28 Aug 2011 17:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://elsper.ru/?p=469#comment-4592</guid>
		<description>[...] хотя у меня есть процедура для того чтобы получить список всех файлов задача требует чтобы все файлы были в одной [...]</description>
		<content:encoded><![CDATA[<p>[...] хотя у меня есть процедура для того чтобы получить список всех файлов задача требует чтобы все файлы были в одной [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Elsper</title>
		<link>http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/comment-page-2/#comment-4255</link>
		<dc:creator>Elsper</dc:creator>
		<pubDate>Tue, 05 Jul 2011 21:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://elsper.ru/?p=469#comment-4255</guid>
		<description>ну и отлично =)</description>
		<content:encoded><![CDATA[<p>ну и отлично =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Бауыржан</title>
		<link>http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/comment-page-1/#comment-4254</link>
		<dc:creator>Бауыржан</dc:creator>
		<pubDate>Tue, 05 Jul 2011 21:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://elsper.ru/?p=469#comment-4254</guid>
		<description>Спс тебе Большое !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Все получилось :-)

procedure GetAllFiles( Path: string; Lb: TListBox );
var
sRec: TSearchRec;
isFound: boolean;
begin
isFound := FindFirst( Path + &#039;\*.*&#039;, faAnyFile, sRec ) = 0;
while isFound do
begin
if ( sRec.Name  &#039;.&#039; ) and ( sRec.Name  &#039;..&#039; ) then
begin
if ( sRec.Attr and faDirectory ) = faDirectory then
GetAllFiles( Path + &#039;\&#039; + sRec.Name, Lb );
if pos(&#039;.mp3&#039;,copy(sRec.Name, length(sRec.Name)-3,4))=1 then
Lb.Items.Add( Path + &#039;\&#039; + sRec.Name );
if pos(&#039;.AAC&#039;,copy(sRec.Name, length(sRec.Name)-3,4))=1 then
Lb.Items.Add( Path + &#039;\&#039; + sRec.Name );
end;
Application.ProcessMessages;
isFound := FindNext( sRec ) = 0;
end;
FindClose( sRec );
end;

procedure TForm1.Button1Click(Sender: TObject);
var dir: String;
pwRoot : PWideChar;
begin
if not SelectDirectory(&#039;Выберите папку с музыкальными файлами&#039;, pwRoot, Dir)
     then Dir :=&#039;&#039;
     else Dir := Dir+&#039;&#039;;

GetAllFiles( dir, listbox1 );
end;

end.</description>
		<content:encoded><![CDATA[<p>Спс тебе Большое !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />
Все получилось <img src='http://elsper.ru/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>procedure GetAllFiles( Path: string; Lb: TListBox );<br />
var<br />
sRec: TSearchRec;<br />
isFound: boolean;<br />
begin<br />
isFound := FindFirst( Path + &#8216;\*.*&#8217;, faAnyFile, sRec ) = 0;<br />
while isFound do<br />
begin<br />
if ( sRec.Name  &#8216;.&#8217; ) and ( sRec.Name  &#8216;..&#8217; ) then<br />
begin<br />
if ( sRec.Attr and faDirectory ) = faDirectory then<br />
GetAllFiles( Path + &#8216;\&#8217; + sRec.Name, Lb );<br />
if pos(&#8216;.mp3&#8242;,copy(sRec.Name, length(sRec.Name)-3,4))=1 then<br />
Lb.Items.Add( Path + &#8216;\&#8217; + sRec.Name );<br />
if pos(&#8216;.AAC&#8217;,copy(sRec.Name, length(sRec.Name)-3,4))=1 then<br />
Lb.Items.Add( Path + &#8216;\&#8217; + sRec.Name );<br />
end;<br />
Application.ProcessMessages;<br />
isFound := FindNext( sRec ) = 0;<br />
end;<br />
FindClose( sRec );<br />
end;</p>
<p>procedure TForm1.Button1Click(Sender: TObject);<br />
var dir: String;<br />
pwRoot : PWideChar;<br />
begin<br />
if not SelectDirectory(&#8216;Выберите папку с музыкальными файлами&#8217;, pwRoot, Dir)<br />
     then Dir :=&raquo;<br />
     else Dir := Dir+&raquo;;</p>
<p>GetAllFiles( dir, listbox1 );<br />
end;</p>
<p>end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Elsper</title>
		<link>http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/comment-page-1/#comment-4253</link>
		<dc:creator>Elsper</dc:creator>
		<pubDate>Tue, 05 Jul 2011 20:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://elsper.ru/?p=469#comment-4253</guid>
		<description>верни код как было используй то, что в посте 
с ‘\*.mp3’ косяк выходит

но вместо

GetAllFiles( Path + &#039;\&#039; + sRec.Name, Lb );
Lb.Items.Add( Path + &#039;\&#039; + sRec.Name );

поставь

GetAllFiles( Path + &#039;\&#039; + sRec.Name, Lb );
if pos(&#039;.mp3&#039;,copy(sRec.Name, length(sRec.Name)-3,4))=1 then
Lb.Items.Add( Path + &#039;\&#039; + sRec.Name );</description>
		<content:encoded><![CDATA[<p>верни код как было используй то, что в посте<br />
с ‘\*.mp3’ косяк выходит</p>
<p>но вместо</p>
<p>GetAllFiles( Path + &#8216;\&#8217; + sRec.Name, Lb );<br />
Lb.Items.Add( Path + &#8216;\&#8217; + sRec.Name );</p>
<p>поставь</p>
<p>GetAllFiles( Path + &#8216;\&#8217; + sRec.Name, Lb );<br />
if pos(&#8216;.mp3&#8242;,copy(sRec.Name, length(sRec.Name)-3,4))=1 then<br />
Lb.Items.Add( Path + &#8216;\&#8217; + sRec.Name );</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Бауыржан</title>
		<link>http://elsper.ru/2010/01/delphi-poluchenie-spiska-vsex-fajlov-v-papke-i-ee-podpapkax/comment-page-1/#comment-4252</link>
		<dc:creator>Бауыржан</dc:creator>
		<pubDate>Tue, 05 Jul 2011 18:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://elsper.ru/?p=469#comment-4252</guid>
		<description>Спс теперь у меня другая проблема есть папка &quot;музыка&quot; внутри музыки есть папка &quot;Club&quot; если выделить музыку то добавляются файлы которые находится в &quot;Музыка&quot; а те которые находиться в &quot;Club&quot; не добавляются уфф  ели как объяснил :-))) 

procedure GetAllFiles( Path: string; Lb: TListBox );
var
sRec: TSearchRec;
isFound: boolean;
begin
isFound := FindFirst( Path + &#039;\*.mp3&#039;, faAnyFile, sRec ) = 0;
while isFound do
begin
if ( sRec.Name  &#039;.&#039; ) and ( sRec.Name  &#039;..&#039; ) then
begin
if ( sRec.Attr and faDirectory ) = faDirectory then
GetAllFiles( Path + &#039;\&#039; + sRec.Name, Lb );
Lb.Items.Add( Path + &#039;\&#039; + sRec.Name );
end;
Application.ProcessMessages;
isFound := FindNext( sRec ) = 0;
end;
FindClose( sRec );
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
GetAllFiles( &#039;E:\музыка&#039;, listbox1 );
end;

end.</description>
		<content:encoded><![CDATA[<p>Спс теперь у меня другая проблема есть папка &laquo;музыка&raquo; внутри музыки есть папка &laquo;Club&raquo; если выделить музыку то добавляются файлы которые находится в &laquo;Музыка&raquo; а те которые находиться в &laquo;Club&raquo; не добавляются уфф  ели как объяснил <img src='http://elsper.ru/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )) </p>
<p>procedure GetAllFiles( Path: string; Lb: TListBox );<br />
var<br />
sRec: TSearchRec;<br />
isFound: boolean;<br />
begin<br />
isFound := FindFirst( Path + &#8216;\*.mp3&#8242;, faAnyFile, sRec ) = 0;<br />
while isFound do<br />
begin<br />
if ( sRec.Name  &#8216;.&#8217; ) and ( sRec.Name  &#8216;..&#8217; ) then<br />
begin<br />
if ( sRec.Attr and faDirectory ) = faDirectory then<br />
GetAllFiles( Path + &#8216;\&#8217; + sRec.Name, Lb );<br />
Lb.Items.Add( Path + &#8216;\&#8217; + sRec.Name );<br />
end;<br />
Application.ProcessMessages;<br />
isFound := FindNext( sRec ) = 0;<br />
end;<br />
FindClose( sRec );<br />
end;</p>
<p>procedure TForm1.Button1Click(Sender: TObject);<br />
begin<br />
GetAllFiles( &#8216;E:\музыка&#8217;, listbox1 );<br />
end;</p>
<p>end.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
