Odcl_DetDriveType

(From ODCL_LM file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > PC System >

Odcl_DetDriveType

(From ODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_GetDriveType

This function show you the specified Drive type.

First Parameter

Value as string representing the Drive Letter.

ex: "C:"

 

Return Values

The Drive type information or Nil = if Not valid.

0 = Unrecognized Drive

1 = Removable Drive

2 = Fixed Drive

3 = Network Drive

4 = CD-ROM Drive

5 = RAM Disk Drive

 

Example:

(Odcl_GetDriveType "Z:\\")

 

Result:

3

 

AutoLisp Syntax:

(Setq rValue (Odcl_GetDriveType DriveLetter [as String]))