windows下批量复制文件到另外一个目录

可以用bat执行文件,内容如下

@echo off & copy By author
xcopy /S/Y "D:\phpstudy\WWW\schat-hba-api\src\app" "D:\pro\app"
xcopy /S/Y "D:\phpstudy\WWW\schat-hba-api\src\bootstrap" "D:\pro\bootstrap"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\config" "D:\pro\config"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\public" "D:\pro\public"
xcopy /S/Y "D:\phpstudy\WWW\schat-hba-api\src\resources" "D:\pro\resources"
xcopy /S/Y "D:\phpstudy\WWW\schat-hba-api\src\database" "D:\pro\database"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\routes" "D:\pro\routes"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\package.json" "D:\pro"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\server.php" "D:\pro"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\webpack.mix.js" "D:\pro"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\artisan" "D:\pro"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\composer.json" "D:\pro"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\phpunit.xml" "D:\pro"
xcopy /Y "D:\phpstudy\WWW\schat-hba-api\src\README.md" "D:\pro"
pause

你可能感兴趣的:(linux)