DRIVETYPE()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return the type of the specified Windows drive

Syntax

DRIVETYPE(<expC>)

See Also

GETENV(), GETGID(), GETPID(), GETREMOTEADDR(), GETREMOTEHOST(), GETREMOTEUSER(), GETUID(), JUSTDRIVE(), LOCALE(), OS(), SYS(), VERSION()

Description

The DRIVETYPE() function returns a number indicating the type of the specified drive.

Notes:
  • The colon in drive names must be specified.
  • The drivetype() function will return 4 for a network drive that has been mapped, it does not check if the network drive is currently accessible.
  • From v9.2.4.

Example

? drivetype("C:")
         3
Return Value Drive Type
1 No type / unknown.
2 Removable drive.
3 Hard disk.
4 Network drive.