I would like to rename a file that is uploaded to another server from extension .txt to .txt_mvd and move to a different directory for archiving in a Windows batch mode. Can anyone help with what the script commands should be like?
Thanks, Allen
I would like to rename a file that is uploaded to another server from extension .txt to .txt_mvd and move to a different directory for archiving in a Windows batch mode. Can anyone help with what the script commands should be like?
Thanks, Allen
Use COPY
Command, to copy the file from source to destination location.
COPY source destination
copy test.txt "D:\destination\test.txt_mvd"
While doing this process, renaming of a file is done automatically at destination location.
That is the Trick in this command.