<?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=6266&amp;type=atom" />
	<updated>2011-10-03T21:48:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6266</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52134#p52134" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Александр_ пишет:</cite><blockquote><p>Список винчестеров:<br /></p><div class="codebox"><pre><code>DriveGet, x, list, FIXED
msgbox %x%</code></pre></div></blockquote></div><p>А если требуются не винчестеры, а съемные носители? есть ли подобного рода функция?<br />-------------------------<br />нашел<br /></p><div class="codebox"><pre><code>DriveGet, x, list, REMOVABLE
msgbox %x%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Footman]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25878</uri>
			</author>
			<updated>2011-10-03T21:48:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52134#p52134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52045#p52045" />
			<content type="html"><![CDATA[<p>Да, не обращал на неё внимания! )) Надо исправить.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-10-01T09:31:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52045#p52045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52032#p52032" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Можно, используя API-функцию <a href="http://msdn.microsoft.com/en-us/library/aa364972%28VS.85%29.aspx">GetLogicalDrives()</a>:<br />...</p></blockquote></div><p>Красиво, но забыли про <a href="http://www.script-coding.com/AutoHotkey/DriveGet.html">DriveGet</a> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Список всех дисков:<br /></p><div class="codebox"><pre><code>DriveGet, x, list
msgbox %x%</code></pre></div><p>Список винчестеров:<br /></p><div class="codebox"><pre><code>DriveGet, x, list, FIXED
msgbox %x%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2011-09-30T20:50:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52032#p52032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51986#p51986" />
			<content type="html"><![CDATA[<p>Хорошо, размещу завтра.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-09-29T23:22:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51986#p51986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51981#p51981" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, такого в Коллекции было? Если нет — поместите под заголовком, например: «AHK: Определение имён дисков в системе».</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-09-29T22:50:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51981#p51981</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51964#p51964" />
			<content type="html"><![CDATA[<p>Благодарю.<br />Все просто и ясно</p>]]></content>
			<author>
				<name><![CDATA[Footman]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25878</uri>
			</author>
			<updated>2011-09-29T18:38:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51964#p51964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51961#p51961" />
			<content type="html"><![CDATA[<p>Можно, используя API-функцию <a href="http://msdn.microsoft.com/en-us/library/aa364972%28VS.85%29.aspx">GetLogicalDrives()</a>:<br /></p><div class="codebox"><pre><code>bitmask := DllCall(&quot;GetLogicalDrives&quot;)

While bitmask &gt;&gt;= (A_Index - 1) != 0
   if bitmask &amp; 1
      Disks .= Chr(Asc(&quot;A&quot;) + A_Index - 1)

MsgBox, % Disks</code></pre></div><p><span style="color: green"><strong>Footman</strong>, не забываем о больших буквах и точках в конце предложения.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-09-29T18:10:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51961#p51961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Определение количества дисков в системе]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51960#p51960" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>Не могу придумать как же определить сколько и какие буквы дисков подключены к компьютеру.</p><p>Можно конечно перерывать весь алфавит A B ..Z&nbsp; в поисках валидного диска, но возможно есть способ проще.</p>]]></content>
			<author>
				<name><![CDATA[Footman]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25878</uri>
			</author>
			<updated>2011-09-29T17:35:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51960#p51960</id>
		</entry>
</feed>
