PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode in Windows Vista (and later)
  • Equivalence
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
Deletes a directory from a disk.
Notes:
  • The user must have the rights to delete a directory.
  • A directory currently browsed by fDir or fListFile cannot be deleted.
WEBDEV - Server code Deletes a directory from the server disk. The Internet Guest account must have the rights to delete a directory.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWEBDEV - Server codeReports and QueriesJavaPHPAjaxUser code (UMC)
// Delete a directory
ResDelete = fRemoveDir("C:\MyDirectories\MyFiles")
Windows Mobile
// Delete a directory
ResDelete = fRemoveDir("\MyDirectories\MyFiles")
Syntax
<Result> = fRemoveDir(<Directory to Delete> [, <Deletion Indicator>])
<Result>: Boolean
  • True if the directory was deleted,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Directory to Delete>: Character string (with quotes)
Name and full (or relative) path of directory to delete. A UNC path can be used. The wildcard characters (*,?) are ignored. This directory name may (or may not) end with "\".
Versions 15 and later
WindowsLinux This parameter can be in Ansi or Unicode format.
New in version 15
WindowsLinux This parameter can be in Ansi or Unicode format.
WindowsLinux This parameter can be in Ansi or Unicode format.
Windows Mobile This path must be a full path or a UNC path. It cannot be a relative path.
iPhone/iPad Only the directories found in the directory of the application can be handled.
<Deletion Indicator>: Optional constant
frReadOnlyAlso deletes the read-only files. If this constant is not specified, the function will return False if read-only files must be deleted.
PHP This constant is not available.
frRecursiveThe contents of directory and sub-directories are also deleted. If this constant is not specified, the directory must be empty in order to be deleted.
frToRecycleBinSends the directory to the Windows bin instead of deleting it.
WEBDEV - Server codeAndroidAndroid Widget Universal Windows 10 AppJavaPHP This constant is not available.
<Deletion Indicator> is empty by default. None of these options is selected.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)

Operating mode in Windows Vista (and later)

If this function does not operate properly in Windows Vista (and later), check whether the file used is not found in one of the system directories (Windows directory or "Program Files" directory).
Indeed, in Windows Vista (and later), with the UAC mechanism (User Account Control) enabled, you must have the administrator privileges to handle and/or modify the files found in the system directories (Windows directory or "Program Files" directory).
Programming tip: To handle and/or modify the files without having administrator privileges, you should:
  • avoid writing into the Windows directory or into the "Program Files" directory,
  • use the system directory corresponding to the application (returned by SysDir associated with the srCommonAppData constant).
Windows Mobile

Equivalence

The operating mode of fRemoveDir is equivalent to the operating mode of ceRemoveDir.
The only difference is:
  • fRemoveDir deletes a directory found on the Pocket PC from a WINDEV Mobile application.
  • ceRemoveDir deletes a Pocket PC directory from a standard WINDEV application.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo Remover Diretorio Ftp
s_arquivo_endereco_remoto is string=SAI_Diretorio_Remoto+TABLE_remoto.COL_nome_arquivo
IF YesNo("Deseja Eliminar Arquivo servidor:["+s_arquivo_endereco_remoto) THEN
n_delela_arquivo_Ftp is int=FTPDeleteFile(n_conexao,s_arquivo_endereco_remoto)
arquivo_mostra_remoto()
END
De matos AMARILDO
Jan. 08 2016