<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Помогите перенести скрипт cmd в AHK]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6833&amp;type=atom" />
	<updated>2012-02-19T09:43:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6833</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57059#p57059" />
			<content type="html"><![CDATA[<p>Спасибо за помощь!</p>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2012-02-19T09:43:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57059#p57059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57039#p57039" />
			<content type="html"><![CDATA[<p>CMD-код можно запустить из AHK-скрипта вот так:<br /></p><div class="codebox"><pre><code>CmdText =
( %
pushd x:\...\folder
rmdir x:\...\folder /s /q
)

CmdText := RegExReplace(CmdText, &quot;\R&quot;, &quot; &amp;&amp; &quot;)
Run, cmd /c %CmdText%,, Hide</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2012-02-18T20:26:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57039#p57039</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57034#p57034" />
			<content type="html"><![CDATA[<p>Неизвестная мне особенность <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> спасибо.<br />Тогда не вижу аналогичного по простоте решения для ahk.<br />Если удаление папки допустимо, её можно воссоздать добавив:<br /></p><div class="codebox"><pre><code>
FileRemoveDir, % deletedFolderPath := &quot;x:\...\folder&quot;, 1
FileCreateDir, % deletedFolderPath</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-02-18T19:30:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57034#p57034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57030#p57030" />
			<content type="html"><![CDATA[<p><strong>creature.ws</strong>, в приведённом <a href="http://forum.script-coding.com/viewtopic.php?pid=57022#p57022">выше</a> коде есть одна особенность: сама папка «x:\...\folder» при этом не удаляется, ибо заблокирована «pushd».</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-02-18T19:02:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57030#p57030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57024#p57024" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
FileRemoveDir, % deletedFolderPath := &quot;x:\...\folder&quot;, 1</code></pre></div><p>В переменной <strong>deletedFolderPath</strong> сохранится путь к удалённой папке.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-02-18T18:17:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57024#p57024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57022#p57022" />
			<content type="html"><![CDATA[<p>Присоединюсь к вопросу, есть простой батник, как его в ahk перевести?<br /></p><div class="codebox"><pre><code>pushd x:\...\folder
rmdir x:\...\folder /s /q</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vinternete]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25439</uri>
			</author>
			<updated>2012-02-18T17:50:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57022#p57022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56974#p56974" />
			<content type="html"><![CDATA[<p>Спасибо большое, как всё просто и изящно <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[csdoom]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27602</uri>
			</author>
			<updated>2012-02-17T12:48:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56974#p56974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56972#p56972" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>To:=&quot;O:\Import\xml&quot;
FileCopy, % &quot;C:\Ufebs\Arh\&quot;A_YYYY &quot;-&quot;A_MM &quot;-&quot;A_DD &quot;\In\Xml\*.xml&quot;, % To, 1
FileCopy, % &quot;C:\Ufebs\Arh\&quot;A_YYYY &quot;-&quot;A_MM &quot;-&quot;A_DD-1 &quot;\In\Xml\*.xml&quot;, % To, 1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-02-17T12:10:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56972#p56972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Помогите перенести скрипт cmd в AHK]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=56969#p56969" />
			<content type="html"><![CDATA[<p>Всем здравствуйте!<br />Есть такой скрипт на cmd:</p><div class="codebox"><pre><code>set day=%DATE:~0,2%
set month=%DATE:~3,2%-
set year=%DATE:~6,4%-
set /a dayp=%day%-1
set YYYYMMDD=C:\Ufebs\Arh\%year%%month%%day%\In\Xml\*.xml
set YYYYMMDDp=C:\Ufebs\Arh\%year%%month%%dayp%\In\Xml\*.xml
copy /Y %YYYYMMDD% O:\Import\xml
copy /Y %YYYYMMDDp% O:\Import\xml</code></pre></div><p>Задача скрипта в том, чтобы определить названия папок из текущей и предыдущей дат, и скопировать файлы из них в одну результирующую папку.<br />Вроде задача простая, но, к сожалению, никак не придумаю, как реализовать её в AHK.</p><p>Буду благодарен за любую помощь.</p>]]></content>
			<author>
				<name><![CDATA[csdoom]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27602</uri>
			</author>
			<updated>2012-02-17T11:39:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=56969#p56969</id>
		</entry>
</feed>
