2021-01-10 16:50:35 +01:00
|
|
|
@echo off
|
2021-01-12 17:01:34 +01:00
|
|
|
rem this script puts everything in place ...
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
set TOOLS=c:\tools
|
2022-11-25 22:19:53 +01:00
|
|
|
set SXS=c:\sources\sxs
|
2021-02-27 21:16:12 +01:00
|
|
|
set BATCH=%TOOLS%\scripts\autoconfig-all.cmd
|
2021-02-03 06:49:13 +01:00
|
|
|
set LOG=c:\CustomSetup.txt
|
|
|
|
|
|
|
|
del /F %LOG% 1>nul 2>nul
|
|
|
|
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
|
|
|
|
shift /1
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
date /t
|
|
|
|
time /t
|
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2022-12-28 22:39:43 +01:00
|
|
|
rem echo killing ssh agent ...
|
|
|
|
rem taskkill /F /IM ssh-agent.exe
|
|
|
|
rem taskkill /F /IM ssh.exe
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2022-12-28 22:39:43 +01:00
|
|
|
rem echo restart explorer ...
|
|
|
|
rem taskkill /F /IM explorer.exe & start explorer.exe
|
|
|
|
rem echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2022-11-25 22:19:53 +01:00
|
|
|
echo deleting %TOOLS% and %SXS% ...
|
|
|
|
rd /S /Q %TOOLS% %SXS%
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2021-02-27 21:16:12 +01:00
|
|
|
echo copying folder %TOOLS% ...
|
|
|
|
robocopy tools %TOOLS% /MIR /256 /NJH /NFL /NDL
|
|
|
|
echo.
|
|
|
|
|
2022-11-25 22:19:53 +01:00
|
|
|
echo copying folder %SXS% ...
|
|
|
|
robocopy sources\sxs %SXS% /MIR /256 /NJH /NFL /NDL
|
|
|
|
echo.
|
|
|
|
|
2021-01-12 20:23:36 +01:00
|
|
|
echo starting %BATCH% ...
|
2021-01-14 00:03:49 +01:00
|
|
|
call %BATCH%
|
2021-01-10 16:50:35 +01:00
|
|
|
echo.
|
2021-01-12 20:23:36 +01:00
|
|
|
|
2021-02-03 06:49:13 +01:00
|
|
|
date /t
|
|
|
|
time /t
|
2021-01-12 20:23:36 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
echo READY.
|
2021-01-14 00:03:49 +01:00
|
|
|
echo.
|
2022-12-28 18:52:04 +01:00
|
|
|
|