<?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=10542&amp;type=atom" />
	<updated>2015-04-01T09:49:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10542</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как удалить папку определенной длины]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92900#p92900" />
			<content type="html"><![CDATA[<p>Вот такой оригинальный код:</p><br /><div class="codebox"><pre><code>@echo off
setlocal

set &quot;folder=%LOCALAPPDATA%\1C\1Cv82&quot;
set length=36

pushd &quot;%folder%&quot;

for /l %%i in (1 1 %length%) do call set regexp=.%%regexp%%

for /f %%i in (&#039;2^&gt;nul dir/ad/b^| findstr/r &quot;^%regexp%$&quot;&#039;) do rd/q/s &quot;%%i&quot;

popd

endlocal
exit/b</code></pre></div><br /><p>.</p>]]></content>
			<author>
				<name><![CDATA[Yury]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30230</uri>
			</author>
			<updated>2015-04-01T09:49:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92900#p92900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Как удалить папку определенной длины]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92894#p92894" />
			<content type="html"><![CDATA[<p>Здравствуйте</p><p>Есть папка %USERPROFILE%\AppData\Local\1C\1Cv82&nbsp; &nbsp; &nbsp;</p><p>в ней регулярно появляются папочки длинной в 36 символов пример -&gt; 9d925cb0-a5f6-47e9-a5d6-92fc7b3952e1 (кэш 1С)</p><p>Его нужно регулярно чистить так как поменянная конфигурация не отрабатывает если его не почистить </p><p>подскажите пожалуйста как сделать батник чтоб он удалял все папки вот такого типа ?</p>]]></content>
			<author>
				<name><![CDATA[tosina]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30781</uri>
			</author>
			<updated>2015-04-01T06:11:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92894#p92894</id>
		</entry>
</feed>
