You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
Batchfile
36 lines
1.1 KiB
Batchfile
4 weeks ago
|
@echo off
|
||
|
setlocal enabledelayedexpansion
|
||
|
|
||
|
set "sourceDir=Tools\Win64"
|
||
|
:: 定义源目录列表
|
||
|
set "sourceDirs=cgns;hdf5;OCC;Python37;PythonQt;QT5;qwt;SARibbon;VTK"
|
||
|
|
||
|
:: 定义目标文件夹
|
||
|
set "destDir=output"
|
||
|
|
||
|
:: 创建目标文件夹如果它不存在
|
||
|
if not exist "%destDir%" mkdir "%destDir%"
|
||
|
if not exist "%destDir%\bin" mkdir "%destDir%\bin"
|
||
|
if not exist "%destDir%\bin_d" mkdir "%destDir%\bin_d"
|
||
|
|
||
|
:: 循环遍历每个源目录并拷贝文件
|
||
|
for %%d in (%sourceDirs%) do (
|
||
|
@REM echo Copying files from %%d to %destDir%
|
||
|
@REM xcopy "%%d\*.*" "%destDir%" /E /I /Y /Q
|
||
|
:: 如果是python则直接拷贝
|
||
|
if "%%d"=="Python37" (
|
||
|
xcopy "%sourceDir%\%%d\*.*" "%destDir%\bin" /E /I /Y /Q
|
||
|
xcopy "%sourceDir%\%%d\*.*" "%destDir%\bin_d" /E /I /Y /Q
|
||
|
) else (
|
||
|
@REM echo "%sourceDir%\%%d\bind\*.dll"
|
||
|
xcopy "%sourceDir%\%%d\bind\*.dll" "%destDir%\bin_d" /E /I /Y /Q
|
||
|
xcopy "%sourceDir%\%%d\bin\*.dll" "%destDir%\bin" /E /I /Y /Q
|
||
|
)
|
||
|
@REM echo "%sourceDir%\%%d\bind\*.dll"
|
||
|
@REM xcopy "%sourceDir%\%%d\*.dll" "%destDir%" /E /I /Y /Q
|
||
|
|
||
|
)
|
||
|
|
||
|
echo All files have been copied.
|
||
|
pause
|
||
|
endlocal
|