|
|
|
|
NetEraseFile (Function) In french: NetSupprimeFichier Deletes a file from the FTP (File Transfer Protocol) or RPC (Remote Procedure Call) server powered by WINDEV. Remark: To allow (or not) the use of this function on an FTP/RPC server, call NetServerOption. 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 Name and full path of the file to delete from the server.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|