-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPostBuildSln.bat
81 lines (73 loc) · 2.01 KB
/
PostBuildSln.bat
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
rem @echo off
rem
rem
rem for /f "tokens=2-4 delims=/ " %%i in ("%date%") do (
rem set day=%%i
rem set month=%%j
rem set year=%%k
rem )
rem for /f "tokens=1-3 delims=: " %%i in ("%time%") do (
rem set hour=%%i
rem set minutes=%%j
rem set seconds=%%k
rem )
rem set seconds=%seconds:~0,2%
rem
rem
rem set datestr=%day%.%month%.%year%
rem set timestr=%hour%.%minutes%.%seconds%
rem set timestampstr=%datestr%-%timestr%
rem
rem set DEBUG_PATH="%~dp0TpFinalTDP2015.UI.WinForms\bin\Debug\"
rem set RELEASE_PATH="%~dp0Release"
rem set DLL_NAME="%~1"
rem set LOG_PATH="%~dp0PostBuildLog.txt"
rem
rem
rem @echo off
rem For %%A in (%DLL_NAME%) do (
rem Set Folder=%%~dpA
rem Set Name=%%~nxA
rem )
rem
rem rem "$(SolutionDir)PostBuild.bat" "$(TargetPath)"
rem
rem echo on
rem rem xcopy /y %DLL_NAME% %DEBUG_PATH%
rem rem xcopy /y %DLL_NAME% %RELEASE_PATH%
rem
rem xcopy /y "%Folder%*.dll" %DEBUG_PATH%
rem xcopy /y "%Folder%*.exe" %DEBUG_PATH%
rem xcopy /y "%Folder%*.config" %DEBUG_PATH%
rem
rem xcopy /y "%Folder%*.dll" %RELEASE_PATH%
rem xcopy /y "%Folder%*.exe" %RELEASE_PATH%
rem xcopy /y "%Folder%*.config" %RELEASE_PATH%
rem
rem echo %timestampstr% %DLL_NAME% >> %LOG_PATH%
rem rem echo. >> %LOG_PATH%
@echo off
set DEBUG_PATH="%~dp0TpFinalTDP2015.UI.WinForms\bin\Debug\"
set RELEASE_PATH="%~dp0Release"
set TEST_PATH="%~dp0TpFinalTDP2015.Test\bin\Debug\"
D:\Dropbox\UTN\FRCU nalTDP2015.Test\bin\Debug
cd "%~dp0"
call :treeProcess
goto :eof
:treeProcess
for %%f in (*.dll) do xcopy /y %%f %TEST_PATH%
for %%f in (*.config) do xcopy /y %%f %TEST_PATH%
for %%f in (*.exe) do xcopy /y %%f %TEST_PATH%
rem for %%f in (*.dll) do xcopy /y %%f %DEBUG_PATH%
rem for %%f in (*.config) do xcopy /y %%f %DEBUG_PATH%
rem for %%f in (*.exe) do xcopy /y %%f %DEBUG_PATH%
rem
rem for %%f in (*.dll) do xcopy /y %%f %RELEASE_PATH%
rem for %%f in (*.config) do xcopy /y %%f %RELEASE_PATH%
rem for %%f in (*.exe) do xcopy /y %%f %RELEASE_PATH%
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b