<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Обработка командных строк]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12405</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12405&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Обработка командных строк».]]></description>
		<lastBuildDate>Wed, 08 Feb 2017 12:00:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Обработка командных строк]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=111989#p111989</link>
			<description><![CDATA[<p>Путям без пробелов кавычки не требуются.<br />Комстроки можно посмотреть в диспетчере задач (добавка: Вид &gt; Выбрать столбцы... &gt; ☑ Командная строка).</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Wed, 08 Feb 2017 12:00:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=111989#p111989</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Обработка командных строк]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=111981#p111981</link>
			<description><![CDATA[<p>Всегда ли выводимые пути в командной строке обрамляются в кавычки?</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 08 Feb 2017 00:41:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=111981#p111981</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Обработка командных строк]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=111915#p111915</link>
			<description><![CDATA[<p>В окне <strong>OpenOffice.org</strong> (типа Ворда) <strong>GetCommandLine()</strong> показала помещенную в код строку и захотелось сделать их более-менее эффективную обработку (может уже есть такая готовая?)). Для этого разбил строку в местах кавычек и оставил только пути. Дальше задумался: как удалить из списка все несуществующее, включая ссылки на папки, и растасовать оставшееся по переменным? —<br /></p><div class="codebox"><pre><code>
Var = &quot;C:\Program Files\OpenOffice.org 3\program\swriter.exe&quot; &quot;-o&quot; &quot;C:\((\Документ Microsoft Word.rtf&quot; &quot;-writer&quot; &quot;-env:OOO_CWD=2C:\\Windows\\system32&quot;

Var := RegExReplace(Var, &quot;&quot;&quot;&quot;, &quot;`n&quot;)
Var := RegExReplace(Var, &quot;\\\\&quot;, &quot;\&quot;)
Var := RegExReplace(Var, &quot;([A-Za-z]:\\)&quot;, &quot;`n$1&quot;)
Var := RegExReplace(Var, &quot;m`a)^(?!\w:).+&quot;) ; удал. не начинающиеся на \w:\
Var := RegExReplace(Var, &quot;\R+\s*&quot;, &quot;`n&quot;)   ; удал. пуст. строки
MsgBox % Var</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Sun, 05 Feb 2017 10:13:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=111915#p111915</guid>
		</item>
	</channel>
</rss>
