.bat小程序 复制并重命名
发布网友
发布时间:2022-04-25 04:04
我来回答
共1个回答
热心网友
时间:2023-10-24 18:22
set date=%date:~0,4%%date:~5,2%%date:~8,2%
set time=%time:~0,2%%time:~3,2%%time:~6,2%
echo f | xcopy /y/h/c/r C:\xx.dmd D:\xx_%date%_%time%.dmd
如果不要日期就是
set time=%time:~0,2%%time:~3,2%%time:~6,2%
echo f | xcopy /y/h/c/r C:\xx.dmd D:\xx_%time%.dmd