Batch command date and time in file name

前端 未结 14 2403
闹比i
闹比i 2020-11-22 01:25

I am compressing files using WinZip on the command line. Since we archive on a daily basis, I am trying to add date and time to these files so that a new one is auto generat

14条回答
  •  情书的邮戳
    2020-11-22 01:56

    A space is legal in file names. If you put your path and file name in quotes, it may just fly. Here's what I'm using in a batch file:

    svnadmin hotcopy "C:\SourcePath\Folder" "f:\DestPath\Folder%filename%"
    

    It doesn't matter if there are spaces in %filename%.

提交回复
热议问题