<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: Как прописать все диски?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10227&amp;type=atom" />
	<updated>2014-12-09T00:08:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10227</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как прописать все диски?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89058#p89058" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Yury]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30230</uri>
			</author>
			<updated>2014-12-09T00:08:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89058#p89058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как прописать все диски?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89057#p89057" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-12-09T00:00:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89057#p89057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Как прописать все диски?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89051#p89051" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[DarkJoker1992]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32574</uri>
			</author>
			<updated>2014-12-08T22:45:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89051#p89051</id>
		</entry>
</feed>
