8.9.11 CheckDriveType (check the drive type)
- Purpose
-
Checks the drive type.
- Syntax
CheckDriveType (DrvTypeBuff, PathName)
- Arguments
-
- DrvTypeBuff
-
Specify a variable for storing the check result. The stored value will be one of the following:
Value
Meaning
REMOVABLE
Removable media (floppy disk drive, etc.)
FIXED
Hard disk
REMOTE
LAN or remote drive
CDROM
CD-ROM drive
RAMDISK
RAM disk
""
Unknown
- PathName
-
Specify the drive path as a character string, or as a variable that stores this value.
- Description
-
The CheckDriveType command checks the type of the drive in the specified path. The command returns True on successful execution, or False if an error occurs.
- Example
Dim result1 CheckDriveType (result1, "D:\") If result1 <> CDROM Then MessageBox ("The path is not a CD-ROM drive.", OK) End
- JP1/Script version
-
Supported from JP1/Script 01-00.