AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Finding out the available disk space
fDriveInfo (Example)
Finding out the available disk space
The following code is used to find out the available disk space. The path of the disk is entered by the user in an edit control (EDT_DiskPath).
In this example, we assume that the user enters the full path of the disk (such as A:).
// -- Click code on BTN_AvailableSpace
// Declare the variable
ResAvailableSpace is int
// Available space?
ResAvailableSpace = fDriveInfo(EDT_DiskPath, fdFreeSpace)
// Error?
IF ResAvailableSpace <> 0 THEN
Info(ResAvailableSpace + "bytes available on this disk")
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 23/08/2022

Señalar un error o enviar una sugerencia | Ayuda local