Greetings,
I am trying to rename the existing snapshot in the EPBCS application, with current date appended to the last. I am using the following commands in a batch file:
SET SnapshotName = Artifact_Snapshot_%DATE:~4,2%%DATE:~7,2%%DATE:~-2%
CALL epmautomate renamesnapshot "Artifact Snapshot" %SnapshotName%
However, i get the following error message in the command prompt:

If i use the command as:
CALL epmautomate renamesnapshot "Artifact Snapshot" SnapshotName
It gets renamed to "Snapshotname"
Could someone help me to figure out how can i append the date at the end of the snapshot.
Thanks,
Pete`