AutoPlay Media Studio 9

How do I...?

How do I...?

Previous topic Next topic  

How do I...?

Previous topic Next topic  

AnswerList of Questions

Determine the Drive Letter of the Primary Hard Drive

To determine the user's main hard drive in AutoPlay Media Studio, use the Drive.Enumerate action, and take note of the first fixed drive (this is the main hard drive):

-- Get a list of all drives in the user's system

drives = Drive.Enumerate();

 

-- Step through the returned list

for j in pairs(drives) do

  -- Get the type of the drive

   type = Drive.GetType(drives[j]);

 

  -- Check if the type of drive is fixed

   if type == 3 then

      -- It is fixed, note the drive letter and break out of the loop

       first_hdd = drives[j];

      break;

   end

end

 

-- Output result to the user

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


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us