MoveImageFileToDirectory
When used before the Scan action, this action tells the Scan action to move the files from the images folder to the specified location.
Syntax
bool MoveImageFileToDirectory (SmartParam)Parameters
The full path to the target location of the Image file. Smart parameters are supported.Returns
False if the parameter is not a valid directory, or if permission to access/write to the directory is denied. Otherwise, True.If the file cannot be written to the destination directory, the batch status will be set to abort.
Level
Any level but usually the batch level.Details
A housekeeping action that moves the current Image file to a location you specify. The source image file will be removed from the input directory and moved to the specified directory. This action is typically used when it is desired to place images into a specific location for archiving. A copy of the image will still be placed into the batch directory.If the target directory already contains a file of the same name, it will give a unique name to the new file.
This action must precede the Scan action. If MoveImageFileToDirectory is used and the Scan action is never subsequently called, the file move will not be performed. If the move to the new directory fails, the batch will be set to abort.
- Example
MoveImageFiletoDirectory("C:\ParentDirectory\Application\backup") SetMaxImageFiles("100") Scan()This sequence copies the source image files to the current batch, then moves the Image files to the specified directory.
MoveImageFiletoDirectory("@APPPATH(vscanmovedir)") Scan()This variant example uses a smart parameter to obtain the directory path from the application service.