How do I...?

Determine the Drive Letter of the Primary Hard Drive

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):

drives = Drive.Enumerate();
for j in drives do
    type = Drive.GetType(drives[j]);
    if type == 3 then
        first_hdd = drives[j];
    end
end

Dialog.Message("", "The user's main HDD is "..first_hdd);


Applies to:

Professional Edition