<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; CMD/BAT: Как прописать все диски?]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10227</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10227&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «CMD/BAT: Как прописать все диски?».]]></description>
		<lastBuildDate>Tue, 09 Dec 2014 00:08:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CMD/BAT: Как прописать все диски?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89058#p89058</link>
			<description><![CDATA[<div class="codebox"><pre><code>@echo off
setlocal enableextensions

set &quot;mask=*.jpg&quot;

for /l %%# in (65 1 90) do (
 cmd /c exit /b %%#
 for /f &quot;delims=&quot; %%i in (&#039;
  2^&gt;nul call dir /a-d/b/s &quot;%%=ExitCodeAscii%%:\%mask%&quot;
 &#039;) do call :Obrabotka &quot;%%i&quot;
 )

endlocal
exit /b


:Obrabotka

 ::::::::::::::
 ::::::::::::::
 ::::::::::::::

 exit /b</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Yury)]]></author>
			<pubDate>Tue, 09 Dec 2014 00:08:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89058#p89058</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMD/BAT: Как прописать все диски?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89057#p89057</link>
			<description><![CDATA[<p>Проще:<br /></p><div class="codebox"><pre><code>@echo off
setlocal enableextensions enabledelayedexpansion

set sPattern=*.jpg

for %%i in (a b c d e f g h i j k l m n o p r s t u v w x y z) do (
    if exist &quot;%%i:\.&quot; (
        pushd &quot;%%i:\&quot;
        for /r %%j in (&quot;%sPattern%&quot;) do call :Obrabotka &quot;%%j&quot;
        popd
    )
)

endlocal
exit /b 0

:Obrabotka
    echo %~1
    exit /b 0</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 09 Dec 2014 00:00:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89057#p89057</guid>
		</item>
		<item>
			<title><![CDATA[CMD/BAT: Как прописать все диски?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89051#p89051</link>
			<description><![CDATA[<p>Подсказали вот такой код, только вот как все диски поставить? О_о<br />Прошу помогите.<br /></p><div class="codebox"><pre><code>Set FDir=&quot;F:\&quot;
Set Maska=&quot;*.jpg&quot;
FOR /R %FDir% %%i IN (%Maska%) DO Call :Obrabotka &quot;%%i&quot;
</code></pre></div><p>Нашел похожий код </p><div class="codebox"><pre><code>set str=%~1
set alfa=ABCDEFGHIJKLMNOPQRSTUVWXYZ
for /l %%a in (0,1,25) do (set b=!alfa:~%%a,1!&amp;(cd /d &quot;!b!:\&quot; &gt; nul 2&gt; nul &amp;&amp; call :dr !b!))
pause
exit
:dr
dir /a:-d /b /s &quot;%1:\%str%&quot; 2&gt; nul
exit /b</code></pre></div><p> .&nbsp; .&nbsp; . мозгов не хватило разобрать -_-</p>]]></description>
			<author><![CDATA[null@example.com (DarkJoker1992)]]></author>
			<pubDate>Mon, 08 Dec 2014 22:45:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89051#p89051</guid>
		</item>
	</channel>
</rss>
