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)
WINDEVUser code (UMC)
// 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)
fdFileNameSizeMaximum size of file name on the disk (in characters)
fdFreeSpaceAvailable disk space (in bytes)
fdNbClusterNumber of disk clusters
fdNbSectorPerClusterNumber of sectors per cluster
fdSectorSizeSize of sector (in bytes)
fdSerialNumberSerial number of the disk, defined when the disk is formatted (not the serial number given by the manufacturer).
fdTotalSpaceTotal size of the disk (in bytes)
fdVolumeNameName of volume
Remarks
WINDEVUser code (UMC)

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