This is a sample batch file.
This script copies a file from the source with one name and in the destination it is a different name.
copy "c:\users\test\sample.txt" "d:\test\sample july 2021.txt"
Can Robocopy do this, copy file from source with one name and the destination with a different name?
If so, what is the syntax to do this?
Thanks in advance.
Robocopy syntax
Moderator: DosItHelp
Re: Robocopy syntax
Nope. The Syntax is pretty clear from the help file.
Code: Select all
Usage :: ROBOCOPY source destination [file [file]...] [options]
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
file :: File(s) to copy (names/wildcards: default is "*.*").