<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AutoIt: Получить расширения выделенных файлов]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12328&amp;type=atom" />
	<updated>2017-01-19T15:58:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12328</id>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111254#p111254" />
			<content type="html"><![CDATA[<p>Проще того, что в крайнем коде? <span class="postimg"><img src="http://www.kolobok.us/smiles/mini/pardon_mini.gif" alt="http://www.kolobok.us/smiles/mini/pardon_mini.gif" /></span></p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-19T15:58:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111254#p111254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111250#p111250" />
			<content type="html"><![CDATA[<p>Согласен. Но для новичка это, по-моему, самый простой вариант.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-01-19T13:01:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111250#p111250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111236#p111236" />
			<content type="html"><![CDATA[<p>Странно видеть такой вопрос от разработчика, который кроме разве что с #Include, Gdip.ahk нигде их не использует.<br />А мораль сей басни такова: чтобы выкорчевать маленькую козюльку, нужно запустить в тело 3 банки соплей.<br /></p><div class="codebox"><pre><code>$FPath = &#039;C:\bla bla bla\bla lba.ext3.ext2.ext1.ext&#039;
MsgBox(0,&quot;&quot;, ObjCreate(&#039;Scripting.FileSystemObject&#039;).GetExtensionName($FPath))</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-19T00:38:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111236#p111236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111232#p111232" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p><strong>Malcev</strong><br />Инклюды не в счёт.</p></blockquote></div><p>А че̇м они плохи?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-01-18T21:22:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111232#p111232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111222#p111222" />
			<content type="html"><![CDATA[<p><strong>Parazit</strong><br />Я всё равно не понимаю.<br />1. Файлы могут быть выделены с одним и тем же расширением. В итоге получатся дубликаты.<br />2. Зачем вообще получать имена, чтобы вытащить из них только расширения? Нет проще задать расширения сразу?</p><p><strong>Malcev</strong><br />Инклюды не в счёт.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-18T16:11:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111222#p111222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111220#p111220" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Я облазил всю справку, но так и не нашёл ту функцию, которая возвращает расширения переданных файлов.</p></blockquote></div><p><a href="https://www.autoitscript.com/autoit3/docs/libfunctions/_PathSplit.htm">https://www.autoitscript.com/autoit3/do … hSplit.htm</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-01-18T15:02:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111220#p111220</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111217#p111217" />
			<content type="html"><![CDATA[<p>Задача была получить все расширения файлов. <br />Я выделяю по одному экземпляру выделенных файлов, и с помощью этого скрипта можно делать любые вещи <br />с полученными расширениями. Копировать, перемещать, изменять атрибуты, архивировать и так далее.<br />Я облазил всю справку, но так и не нашёл ту функцию, которая возвращает расширения переданных файлов.</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-01-18T11:57:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111217#p111217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111210#p111210" />
			<content type="html"><![CDATA[<p>А вообще зачем это нужно? Какой толк от повторяющихся масок?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-18T08:59:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111210#p111210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111207#p111207" />
			<content type="html"><![CDATA[<p>Точно. Я просто делал под другую задачу, и это опустил.</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-01-18T06:56:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111207#p111207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111206#p111206" />
			<content type="html"><![CDATA[<p>Ну, здрасте. StringMid это и делает. Версия AutoIt актуальная?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-18T04:25:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111206#p111206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111203#p111203" />
			<content type="html"><![CDATA[<p>Спасибо. Почти то. Вот задача теперь, как удалить первую ненужную точку с запятой, вместе с пробелом.</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-01-18T00:36:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111203#p111203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111202#p111202" />
			<content type="html"><![CDATA[<p>Понятно.</p><div class="codebox"><pre><code>Dim $Exts
For $i = 1 To $CmdLine[0]
  $Exts &amp;= &#039;; &#039; &amp; StringRegExpReplace($CmdLine[$i], &#039;^(?:.*?)(\.[^.]+)?$&#039;, &#039;*\1&#039;)
Next
Msgbox(0,&quot;&quot;, StringMid($Exts, 3))</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-17T23:48:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111202#p111202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111201#p111201" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>, так получается поочерёдное перебирание элементов массива.<br />А мне надо, чтобы это было одной строкой.</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-01-17T23:23:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111201#p111201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111200#p111200" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>For $i = 1 To $CmdLine[0]
  $Path = $CmdLine[$i]
  Msgbox(0,&quot;&quot;, StringRegExpReplace($Path, &#039;^(?:.*?)(\.[^.]+)?$&#039;, &#039;*\1&#039;))
Next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-01-17T22:27:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111200#p111200</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AutoIt: Получить расширения выделенных файлов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=111198#p111198" />
			<content type="html"><![CDATA[<p>Привет. Задача получить расширения выделенных файлов. Я в <strong>Total Commander</strong> выделяю файлы с параметром <strong>%P%S</strong>.</p><p>Существует ли в <strong>AutoIt </strong>такой метод, который возвращает расширения файлов?<br />Вот скрипт</p><div class="codebox"><pre><code>#include &lt;Array.au3&gt;

If WinExists(&quot;[CLASS:TTOTAL_CMD]&quot;) Then
WinActivate(&quot;[CLASS:TTOTAL_CMD]&quot;)
endif
$aaa = _ArrayToString($CmdLine, &#039; &#039;, 1)
MsgBox ( 1, &quot;text&quot;, $aaa)</code></pre></div><p>Вместо полных имён, в конечном итоге должно выглядить так.</p><p>*.txt; *.htm; *.mp3</p>]]></content>
			<author>
				<name><![CDATA[Parazit]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34289</uri>
			</author>
			<updated>2017-01-17T21:34:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=111198#p111198</id>
		</entry>
</feed>
