ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Type of drive
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns information about a drive.
// Total disk size?
ResDiskSize is numeric = fDriveInfo("C:", fdTotalSpace)
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
// Name of volume
ResultName is string
ResultName = fDriveInfo("C:", fdVolumeName)
Info(ResultName)
Syntax
<Result> = fDriveInfo(<Disk path> , <Information>)
<Result>: All types
  • Requested information.
  • 0 if an error occurs. To get more details on the error, use ErrorInfo with the errMessage constant.
<Disk path>: Character string
Path of disk to use in the following format:
  • <drive letter>:. For example: "A:". The drive letter is written in uppercase character.
  • UNC path. For example: "\\<ServerName>\<ShareName>".
<Information>: Constant
Specifies the requested type of information:
fdDriveTypeType of drive (see the table below)
PHP This constant is not available.
fdFileNameSizeMaximum size of file name on the disk (in characters)
PHP This constant is not available.
fdFreeSpaceAvailable disk space (in bytes)
fdNbClusterNumber of disk clusters
PHP This constant is not available.
fdNbSectorPerClusterNumber of sectors per cluster
PHP This constant is not available.
fdSectorSizeSize of sector (in bytes)
PHP This constant is not available.
fdSerialNumberSerial number of the disk, defined when the disk is formatted (not the serial number given by the manufacturer).
PHP This constant is not available.
fdTotalSpaceTotal size of the disk (in bytes)
fdVolumeNameName of volume
PHP This constant is not available.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax

Type of drive

The types of drives are WLanguage constants. The possible values are:
ConstantValueType of drive
fdUnknown32Unknown type
fdRemovable1Removable drive (flash drive, zip, etc.)
fdFixed2Fixed drive (hard disk)
fdInvalid0The specified path does not correspond to a drive
fdRemote4Network drive
fdCDRom8CD-ROM (and burners, DVD, etc.)
fdRAM16Virtual drive
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/25/2022

Send a report | Local help