File Actions - Files

This will perform one of several file-related actions:

 

·   Copy: Parameter 1 is the “from” file, Parameter 2 is the “to” file or path. The result is placed in the “[FILECOPY]” value.

·   Move: Parameter 1 is the “from” file, Parameter 2 is the “to” file or path. The result is placed in the “[FILEMOVE]” value.

·   Rename: Parameter 1 is the “from” file, Parameter 2 is the “to” file or path. The result is placed in the “[FILEMOVE]” value.

·   Delete: Parameter 1 is the file to be deleted. The result is placed in the “[FILEDELETE]” value.

·   Recycle: Parameter 1 is the file to be put in the Recycle Bin. The result is placed in the “[FILEDELETE]” value. IMPORTANT: This action obeys your system settings. If you have set your system to automatically delete files rather than put them in the Recycle Bin, that will happen with this command.

 

NOTE:

·   The results are place in “values” that can be evaluated by the “If Value…” script command.

·   You can insert values (see also “Set Value”) into any valid parameter.

·   Wildcards can be used.

·   Directories will be created automatically as required.

 

EXAMPLES:

·   COPY C:\WINDOWS\DESKTOP D:\WINDOWS\DESKTOP\BACKUP – Copies the entire folder and subfolders

·   COPY C:\WINDOWS\DESKTOP\*.* D:\WINDOWS\DESKTOP\BACKUP – Copies the contents of the folder but not the subfolders

·   COPY C:\AUTOEXEC.BAT D:\WINDOWS\DESKTOP\BACKUP\[DATE]_AUTOEXEC.BAT – Copies AUTOEXEC.BAT to a new file name each day.


See also:

File Actions – Directories

File Actions - Get a Value (File size, date, time, exist)

File Actions - FTP/HTTP (Internet).