CMD Echo date but show month as string
Posted
by
Asim Rehman
on Super User
See other posts from Super User
or by Asim Rehman
Published on 2013-11-09T20:26:38Z
Indexed on
2013/11/09
21:58 UTC
Read the original article
Hit count: 409
cmd.exe
I am using the robocopy command to create a backup system, I have successfully managed to copy the folders, but the date stamp is wrong. The folders are prefixed with the date and time .
The robocopy command is this:
robocopy U:\Data\ X:\Private\Backups\FolderName_%date:/=-%-(%time::=-%) /e
The out of the folder is displayed like this:
FolderName_09-11-2013-(20-24-06.60)
The only thing I want to change is the date, I want to show the month as a string with only the first 3 characters like Oct.
Can someone please guide me. Thanks.
© Super User or respective owner