title: How do I find USB connected removable hard drives in Autohotkey
body: <p>I'm trying to find all USB hard drives/SSD connected to my system.</p>
  
  <p>The command
     <strong>DriveGet, , Type</strong>
  should return these values
    "<strong>Unknown, Removable, Fixed, Network, CDROM, RAMDisk.</strong>"</p>
  
  <p>The script below returns "<strong>Fixed</strong>" for every drive, no matter how it is connected.</p>
  
  <p>Is there a way to fix this?</p>
  
  <pre><code>DriveGet, DriveList , List,
  Loop,
  
  {
  
    MyDrive :=  SubStr(Drivelist, A_Index,1)  
  
    If (MyDrive = "")
      break
  
    MyDrive = %MyDrive%
  
    DriveGet, MyLabel, serial, %MyDrive%
    DriveGet, MyType, Type,  %MyDrive%:\
    msgbox, Drive %MyDrive% Type %MyType%
  
  }
  </code></pre>