I need to write a batch file that copies a file to a new folder and renames it.
At the moment, my batch file consists of only this command:
COPY ABC.PDF \\Documents
As you can see, it only copies the file ABC.pdf
to the network folder Documents
.
However I need to change this so it renames the file ABCxxx.pdf
, where xxx
is a text variable that I would like to set somewhere in the batch file.
For example, if xxx
= _Draft
, then file would be renamed ABC_Draft.pdf
after it is copied.