DriveType constants
These constants are only available when your project has an explicit reference to the appropriate type library containing these constant definitions.
Constant | Value | Description |
---|---|---|
Unknown | 0 | Drive type can't be determined. |
Removable | 1 | Drive has removable media. This includes all floppy drives and many other varieties of storage devices. |
Fixed | 2 | Drive has fixed (nonremovable) media. This includes all hard drives, including hard drives that are removable. |
Remote | 3 | Network drives. This includes drives shared anywhere on a network. |
CDROM | 4 | Drive is a CD-ROM. No distinction is made between read-only and read/write CD-ROM drives. |
RAMDisk | 5 | Drive is a block of random access memory (RAM) on the local computer that behaves like a disk drive. |
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.