判断文件是否存在(exist)

set datedir=%date:~0,4%%date:~5,2%%date:~8,2%
if exist d:\rollback\%datedir%\Server\ (rename d:\rollback\%datedir%\Server Server_0)
xcopy /e /h /r /s D:\Server\\*.* "d:\rollback\%datedir%\Server\"

posted on 2014-07-10 11:31  momingliu11  阅读(313)  评论(0编辑  收藏  举报