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
Renames (or moves) a file found on the FTP server (File Transfer Protocol) or on 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
Res is int
FTPServerID is int
FTPServerID = NetConnect("148.61.125.245", FTPServer, "GUEST", "")

// Rename a file on the server
Res = NetRenameFile(FTPServerID, "C:\HISTO\YEAR98.TXT", ...
"C:\HISTO\YEAR98.BAK")
IF Res <> 0 THEN
// Procedure for error process
  ProcessError()
END
Syntax
<Result> = NetRenameFile(<Connection Identifier> , <Name of Source File> , <Name of Renamed File>)
<Result>: Integer
Result of the modification:
  • 0: The file found on the server was renamed
  • 2: The file to rename does not exist
  • 5: Access denied
  • 17: Move not allowed from a disk to another one
  • 19: Write-protected diskette
  • 32: The file is currently used by another program
  • 183: A file with the same name already exists
<Connection Identifier>: Integer
Identifier of the connection for the client computer (returned by NetConnect).
<Name of Source File>: Ansi character string (with quotes)
Name and full path of the file to rename on the server.
<Name of Renamed File>: Ansi character string (with quotes)
Name and full path of the renamed file. If the path is different while the file name remains the same, the file will be moved (on the same disk only).
Components
WINDEVReports and Queries wd230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment