Signature (Visual Basic / VBA)
Public Property Get DRIVE_REMOVABLE() As Long
Code Example
Debug.Print "A is" & IIf(GetDriveType("A") = DRIVE_REMOVABLE), "", " NOT") & " a removable drive."
"Drive Type Is Removable" The GetDriveType Function returns this value to indicate that the specified drive is a removable disk, such as a floppy disk, removable hard disk, or optical disk.
Public Property Get DRIVE_REMOVABLE() As Long
Debug.Print "A is" & IIf(GetDriveType("A") = DRIVE_REMOVABLE), "", " NOT") & " a removable drive."