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
Deletes a file from the FTP server (File Transfer Protocol) or from the RPC server (Remote Procedure Call) powered by WINDEV.
Note: To allow (or not) the use of this function on an FTP/RPC server, call NetServerOption.
Example
FTPServerID is int
Res is int
FTPServerID = NetConnect("148.61.125.245", FTPServer, "GUEST", "")
// Deletes a file from the server
Res = NetEraseFile(FTPServerID, "C:\HISTO\YEAR98.TXT")
IF Res <> 0 THEN
ProcessError() // Procedure for error process
END
Syntax
<Result> = NetEraseFile(<Connection Identifier> , <File Name>)
<Result>: Integer
Result of the deletion:
  • 0: The file was deleted from the server
  • 2: The file to delete does not exist
  • 5: Access denied
  • 19: Write-protected diskette
<Connection Identifier>: Integer
Identifier of the connection for the client computer (returned by NetConnect).
<File Name>: Ansi character string (with quotes)
Name and full path of the file to delete from the server.
Components
WINDEVReports and Queries wd230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment