PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
fDriveReady (Function)
In French: fDisquePrêt
Used to find out:
  • whether the floppy drive is ready,
  • whether the disk exists.
// Drive ready?
ResReady = fDriveReady("E")
Syntax
<Result> = fDriveReady(<Disk Path>)
<Result>: Boolean
  • True if the drive is ready, accessible and available,
  • False otherwise. 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", "a:" or "a:\".
  • UNC path. For example: "\\<ServerName>\<ShareName>".
If the drive is a diskette drive, a card drive, a CD drive or a DVD drive, the drive is ready only if it contains a diskette, a card, a CD or a DVD.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo FDriveReady
Exemplo FDriveReady

s_drive is string=""
Input("Digite Drive:",s_drive)
b_unidade_pronta is boolean=fDriveReady(s_drive)
IF b_unidade_pronta=True THEN
Info("Ok Drive ")
ELSE
Info("Error Drive")
END

//Blog com video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/09/curso-windev-arquivos-013-arquivos.html
https://www.youtube.com/watch?v=JNpIA2Yjl5k
De matos AMARILDO
Sep. 06 2016