Rename or move a file.
RENAME path-1 path-2
path is as follows:
To move a file, specify a different directory for path-2 (the drive must be the same). When you move a file, you can also rename it (optionally). To do so, specify a new file name and/or extension.
Rename the file Test.ncp to Test.xyz:
RENAME Test.ncp Test.xyz
Move the file Test.ncp to the directory \SAG\NCP:
RENAME Test.ncp \SAG\NCP\Test.ncp
Move the file Test.ncp to \SAG\NCP and rename it to Down.ncp:
RENAME Test.ncp \SAG\NCP\Down.ncp
RENAME was successful.
RENAME was not successful.)