MOVE        Move one local file to another location

Top  Previous  Next

Syntax:

MOVE

[ src file ]  [ dest file ]

Arguments:

[ src name ]

Variable or string defining a file or path name; if no path is defined Robo-FTPs working folder is used.

 

[ dest name ]

Variable or string defining a file or path name; if no path is defined Robo-FTPs working folder is used.

Options:

none

 

 

 

This script command moves the source file (copies and deletes) to the destination location.

 

Full file or path names are required. For example, the following is a valid command.

 

MOVE "c:\test\file" "c:\test2\file"

 

If test2 is an existing folder, the following moves a file to the folder while retaining the original file name.

 

MOVE "c:\test\file" "c:\test2"

 

Otherwise, file is moved to the root folder of drive C: and renamed to test2.

 

If you omit the path name portion of an argument, Robo-FTP assumes that the file is (or will be located) in the working folder. For example, the following moves a file from the current working folder:

 

MOVE "file" "c:\test2\file"

 

Wildcard characters are not permitted with this command. Use the DOSCMD script command if you need to copy, append, or move multiple files with a single command.

 

Related Command(s): APPEND, COPY, DELETE, RENAME, WORKINGDIR