PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Operating mode in Windows Vista (and later)
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
Deletes a directory from a disk.
Remarks:
  • 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.
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)PHPAjax
// Delete a directory
ResDelete = fRemoveDir("C:\MyDirectories\MyFiles")
Syntax
<Result> = fRemoveDir(<Directory to delete> [, <Deletion indicator>])
<Result>: Boolean
  • True if the directory was deleted,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Directory to delete>: Character string
Name and full (or relative) path of the directory to delete. A UNC path can be used. The wildcard characters (*,?) are ignored. This directory name may (or may not) end with "\".
WindowsLinux This parameter can be in Ansi or Unicode format.
iPhone/iPadIOS WidgetMac Catalyst 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 the directory and subdirectories 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 codeUniversal Windows 10 AppAndroidAndroid Widget JavaPHP 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 or directory used is not in one of the system directories (Windows directory or "Program Files" directory).
In Windows Vista (and later), with the UAC mechanism (User Account Control) enabled, you must have administrator privileges to handle and/or modify the files or directories in system directories (Windows directory or "Program Files" directory).
Programming tip: To handle and/or modify the files or directories without administrator privileges, you should:
  • avoid writing to the Windows directory or to the "Program Files" directory,
  • use the system directory of the application (returned by SysDir with the srAppDataCommun constant, for example).
Component: wd280std.dll
Minimum version required
  • 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
08 Jan. 2016