ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
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
fCopyFileWebFolder (Function)
In french: fCopieFichierRépertoireWeb
Copies an image file from the data directory of application (or from one of its sub-directories) to the "_WEB" directory of application (or to one of its sub-directories).
Caution: To use this function, make sure the "Allow fCopyFileWebFolder and fDeleteFileWebFolder." option is checked in the "Advanced" tab of the WEBDEV administrator.
Example
fCopyFileWebFolder("TemporaryImage.png", "images/product.png")
Syntax
<Result> = fCopyFileWebFolder(<Source file> , <Destination file>)
<Result>: Boolean
  • True if the file was copied,
  • False otherwise.
<Source file>: Character string
File to copy. This parameter can be:
  • A name of file with its full path.
  • A name of file with its path relative to the data directory of the application. The data directory of the application is returned by fDataDir.
<Destination file>: Character string
Destination file of the copy. This parameter can be:
  • A name of file with its full path.
  • A name of file with its path relative to the "_WEB" directory of the application. The "_WEB" directory of the application is returned by fWebDir.
Remarks
  • fCopyFileWebFolder copies one file at a time.
  • Wildcard characters (*,?) are not allowed in the file name.
  • Only the image file can be copied (the accepted extensions are jpg, jpeg, png, gif, bmp, tif, tiff and svg).
  • If the destination directory is a subdirectory of the "_WEB" directory, this subdirectory is created if it does not exist.
  • Caution: The copy is taken into account by the WEBDEV administrator on the server (WD290ADMIN.EXE). The Windows account running it must have sufficient rights to the target location of the copy.
Component: wd290page.dll
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 08/24/2022

Send a report | Local help