PDA

View Full Version : Determining the Drive Letter of the Primary Hard Drive


Desmond
10-03-2003, 10:43 AM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Determining the Drive Letter of the Primary Hard Drive</h3> <b>Document ID: IR10070</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to determine the drive letter of the user's primary hard drive.</p> <h3>DISCUSSION</h3> <p>To determine the user's main hard drive in AutoPlay Media Studio 5.0, use the Drive.Enumerate action, and take note of the first fixed drive (this is the main hard drive):<pre><code>drives = Drive.Enumerate();
<br />for j in drives do
<br /> type = Drive.GetType(drives[j]);
<br /> if type == 3 then
<br /> first_hdd = drives[j];
<br /> end
<br />end
<br />
<br />Dialog.Message("", "The user's main HDD is "..first_hdd);</code></pre> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | Drive | Drive.Enumerate</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Drive, Letter, Primary, Hard Drive, HDD, Enumerate </p> <hr> <FONT SIZE=1> Last reviewed: October 3, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>