Batch command to move files to a new directory

后端 未结 2 976
闹比i
闹比i 2021-02-19 03:28

I want to write a batch job that when executed will grab all the files in the C:\\Test\\Log folder and move them to a new directory in the C:\\Test. Th

2条回答
  •  别那么骄傲
    2021-02-19 04:15

    this will also work, if you like

     xcopy  C:\Test\Log "c:\Test\Backup-%date:~4,2%-%date:~7,2%-%date:~10,4%_%time:~0,2%%time:~3,2%" /s /i
     del C:\Test\Log
    

提交回复
热议问题