<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Обработка командных строк]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12405&amp;type=atom" />
	<updated>2017-02-08T12:00:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12405</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка командных строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111989#p111989" />
			<content type="html"><![CDATA[<p>Путям без пробелов кавычки не требуются.<br />Комстроки можно посмотреть в диспетчере задач (добавка: Вид &gt; Выбрать столбцы... &gt; ☑ Командная строка).</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-02-08T12:00:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111989#p111989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Обработка командных строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111981#p111981" />
			<content type="html"><![CDATA[<p>Всегда ли выводимые пути в командной строке обрамляются в кавычки?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2017-02-08T00:41:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111981#p111981</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Обработка командных строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111915#p111915" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2017-02-05T10:13:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111915#p111915</id>
		</entry>
</feed>
