- Path of UNC disk
- Type of disk
fDriveInfo (Function) In french: fDisqueInfo Returns information about a disk.
// Total disk size? ResDiskSize is numeric = fDriveInfo("C:", fdTotalSpace)
Syntax
<Result> = fDriveInfo(<Disk Path> , <Information>)
<Result>: All types - Requested information.
- 0 if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Disk Path>: Character string (with quotes) 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>". Some constraints exist depending on the operating system used and on the requested type of information (see the Notes).
<Information>: Constant Specifies the requested type of information: | | fdFreeSpace | Available disk space (in bytes) | fdTotalSpace | Total size of the disk (in bytes) | fdNbCluster | Number of disk clusters | fdNbSectorPerCluster | Number of sectors per cluster | fdVolumeName | Name of volume | fdSerialNumber | Serial number of the disk, defined when the disk is formatted (differs from the serial number given by the manufacturer). | fdFileNameSize | Maximum size of file name on the disk (in characters) | fdSectorSize | Size of sector (in bytes) | fdDriveType | Type of disk (see the table below) |
Remarks Path of UNC disk Depending on the operating system used and on the requested type of information, a UNC path can be used. The table below presents the combinations that allow the use of a UNC path: | | Requested information | Use of a UNC path allowed with the following operating systems: |
---|
fdFreeSpace | Windows 98, Me, NT, 2000, XP, 2003 Server, Vista, 7 | fdTotalSpace | Windows 98, Me, NT, 2000, XP, 2003 Server, Vista, 7 | fdNbCluster | Windows Me, NT, 2000, XP, 2003 Server, Vista, 7 | fdNbSectorPerCluster | Windows Me, NT, 2000, XP, 2003 Server, Vista, 7 | fdFileNameSize | Windows 98, Me, NT, 2000, XP, 2003 Server, Vista, 7 | fdSectorSize | Windows Me, NT, 2000, XP, 2003 Server, Vista, 7 | fdDriveType | Windows 95, 98, Me, NT, 2000, XP, 2003 Server, Vista, 7 |
This page is also available for…
|
|
|
| |
| | https://youtu.be/cYm2QdQatpo https://windevdesenvolvimento.blogspot.com/2019/09/dicas-2270-windev-webdev-mobile.html
//btn_espaco_hd TableDeleteAll(TABLE_HD) LIVRE_C is int=LengthToString(fDriveInfo("C:",fdFreeSpace),sizeGB) TOTAL_C is int=LengthToString(fDriveInfo("C:",fdTotalSpace),sizeGB) nOCUPADO is int=TOTAL_C-LIVRE_C EDT_TOTAL_HD=TOTAL_C
TableAddLine(TABLE_HD,"C: Livre ",LIVRE_C) TableAddLine(TABLE_HD,"C: Ocupado",nOCUPADO) grDraw(CHART_HD)
|
|
|
|
| |
| |
| |
|
| | Exemplo: fDriveinfo
EDT_texto="Total Espaco Livre - fdFreeSpace["+LengthToString(fDriveInfo("C:",fdFreeSpace),sizeGB)+"]"+CR EDT_texto+="Total Espaco Disco - fdTotalSpace["+LengthToString(fDriveInfo("C:",fdTotalSpace),sizeGB)+"]"+CR EDT_texto+="Numero Serial Hd - fdSerialNumber["+fDriveInfo("C:",fdSerialNumber)+"]"+CR
//Blog com exemplo e video http://windevdesenvolvimento.blogspot.com.br/2016/09/curso-windev-arquivos-011-arquivos.html https://www.youtube.com/watch?v=9WOC6gh9-tk
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|