批处理实现创建创建时间文件夹并复制指定文件。

2024-12-18 00:22:03
推荐回答(2个)
回答1:

xcopy /e /c /h /r /k "D:\PRCT" "D:\GAME\%now%\"
将这条命令加到创建文件夹命令之后

回答2:

@echo off
set "now=%DATE:~0,10%@%time:~0,2%_%time:~3,2%_%time:~6,2%"
if not exist "D:\GAME\%now%" md "D:\GAME\%now%"
xcopy /e /i /c /h /y /k /r "D:\PRCT" "D:\GAME\%now%\"
-------------------------------------------

保存为:*.CMD 双击即可