Difference between revisions of "DRIVETYPE()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function to return the type of the specified Windows drive ==Syntax== DRIVETYPE(<expC>) ==See Also== GETENV(), GETGID(), GETPID(), [[GETREMOTEADDR()]...") |
Yvonne.milne (Talk | contribs) (→Description) |
||
Line 26: | Line 26: | ||
* The colon in drive names must be specified. | * 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. | * 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== | ==Example== |
Latest revision as of 05:26, 11 September 2023
Contents
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.
Return Value | Drive Type |
---|---|
1 | No type / unknown. |
2 | Removable drive. |
3 | Hard disk. |
4 | Network drive. |