谢谢楼上各位指点,经实验几次,总结完整代码如下!- @echo off
- set mytime=%date:~0,10%_%time:~0,8%
- set mytime=%mytime::=-%
- md "D:\GHOST\RQ_3.5\%mytime%"
-
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\disk.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\Instsrv.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\option.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\recov.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\server.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\VncP.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\wks.ini" "D:\GHOST\RQ_3.5\%mytime%"
- xcopy /c /h /k /r /y /e "C:\Program Files\Richtech\DlxpServ\wksgroup.ini" "D:\GHOST\RQ_3.5\%mytime%"
复制代码
|