<< back to sysax.com Product page

5.7. Copying and moving local files and folders

Files and folders can be copied using the ftpcopylocal command. The item identified by the source name is copied to the specified destination path. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully.

Exhibit 5.15. Syntax of command for copying local files and folders

ftpcopylocal <source name>, <destination path>;

Exhibit 5.16. Examples for using the command for copying local files and folders

ftpcopylocal "filelist.txt", "C:\\backup"; #copy a file

ftpcopylocal "dw_folder", "C:\\backup"; #copy a folder

Files and folders can be moved using the ftpmovelocal command. The item identified by the source name is moved to the specified destination path. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully.

Exhibit 5.17. Syntax of command for moving local files and folders

ftpmovelocal <source name>, <destination path>

          

Exhibit 5.18. Examples for using the command for moving local files and folders

ftpmovelocal "dirlist.txt", "C:\\backup"; #move a file

ftpmovelocal "ac_folder", "C:\\backup"; #move a folder;