ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
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
Determines:
  • if a given drive (storage card, CD or DVD) is available,
  • whether the drive 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 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", "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.
Component: wd290std.dll
Minimum version required
  • 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
06 Sep. 2016

Last update: 03/17/2023

Send a report | Local help