ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
fCopyFile (Example)
WEBDEV - Server codePHPAjax Copying a file (WEBDEV)
The following code is used to copy a file.
// Declare the variables
FileToCopy is string
CopiedFile is string
ResCopy is boolean
 
// Select the file to copy
FileToCopy = "C:\Directories\FileB.doc"
// Select the copied file
CopiedFile = "C:\Directories\FileA.doc"
 
// Copy the file
ResCopy = fCopyFile(FileToCopy, CopiedFile)
// Display an error message if the copy failed
IF ResCopy = False THEN
Error(ErrorInfo(errMessage))
ELSE
Info("The file was copied")
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/24/2022

Send a report | Local help