如下:
@echo off set srcpath=F:配置表配置表 set destpath=F:git_codeServerserverserverdata echo 源地址:%srcpath% echo 目标地址:%destpath% echo echo set srcmusic=%srcpath%musicbin set destmusic=%destpath%music echo %srcmusic% echo %destmusic% echo 开始拷贝music echo y|xcopy %srcmusic%*.* %destmusic% /S /Y echo 完成拷贝music echo echo set srcdat=%srcpath%serverdat set destdat=%destpath%dat echo %srcdat% echo %destdat% echo 开始拷贝dat echo y|xcopy %srcdat%*.* %destdat% /S /Y echo 完成拷贝dat echo echo set srcnewdata=%srcpath%server set destnewdata=%destpath%newdata echo %srcnewdata% echo %destnewdata% echo 开始拷贝newdata echo y|xcopy %srcnewdata%*.tbl %destnewdata% /S /Y echo 完成拷贝newdata pause