alielie
2026-09-10 9ec80cafc23f5ee3278cacce3c9f86f4087b435a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
setlocal enabledelayedexpansion
 
set "source_folder=$(TargetDir)"
set "destination_folder=$(TargetDir)3rds"
set "libs_folder=$(TargetDir)Libs"
set "tap_folder=$(TargetDir)OpenTap"
set "report_folder=$(TargetDir)Report"
set "settings_folder=$(TargetDir)Settings"
 
IF "$(ConfigurationName)"=="Release" del /s /q "%source_folder%\*.pdb"
 
rmdir /S /Q "%destination_folder%"
mkdir "%destination_folder%"
 
mkdir "%libs_folder%" 
 
move /y "%source_folder%UILib.dll" "%libs_folder%\UILib.dll"
move /y "%source_folder%UtilLib.dll" "%libs_folder%\UtilLib.dll"
move /y "%source_folder%ViHelper.dll" "%libs_folder%\ViHelper.dll"
move /y "%source_folder%LabViewRunner.dll" "%libs_folder%\LabViewRunner.dll"
move /y "%source_folder%AddInPlugin.dll" "%libs_folder%\AddInPlugin.dll"
move /y "%source_folder%OpenTap.dll" "%libs_folder%\OpenTap.dll"
move /y "%source_folder%OpenTap.Plugins.BasicSteps.dll" "%libs_folder%\OpenTap.Plugins.BasicSteps.dll"
 
 
 
mkdir "%report_folder%"
mkdir "%settings_folder%"
 
 
 
for /d %%D in ("%source_folder%\*") do (
    if /I not "%%~nxD"=="Settings" if /I not "%%~nxD"=="Config" if /I not "%%~nxD"=="Lang" if /I not "%%~nxD"=="Libs" if /I not "%%~nxD"=="Log" if /I not "%%~nxD"=="Plugin" if /I not "%%~nxD"=="OpenTap" if /I not "%%~nxD"=="Report" (
        move /Y "%%D" "%destination_folder%"
    )
)
 
for %%F in ("%source_folder%\*") do (
    if /I not "%%~nxF"=="$(TargetFileName)" if /I not "%%~nxF"=="$(TargetFileName).config" if /I not "%%~nxF"=="$(TargetName).pdb" (
        move /Y "%%F" "%destination_folder%"
    )
)