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
|
2021-01-12 20:23:36 +01:00
|
|
|
set LOG=c:\CustomSetup.txt
|
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
set SCRIPTS=%TOOLS%\scripts
|
2021-01-12 20:23:36 +01:00
|
|
|
set BATCH=%SCRIPTS%\autoconfig-all.cmd
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2021-01-12 20:23:36 +01:00
|
|
|
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
|
|
|
|
shift /1
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
echo ####### %0 #######
|
2021-01-12 20:23:36 +01:00
|
|
|
date /t
|
|
|
|
time /t
|
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
|
|
|
echo killing ssh agent ...
|
|
|
|
taskkill /F /IM ssh-agent.exe
|
|
|
|
taskkill /F /IM ssh.exe
|
|
|
|
|
|
|
|
echo restart explorer ...
|
|
|
|
taskkill /F /IM explorer.exe & start explorer.exe
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
|
|
|
echo deleting %TOOLS% ...
|
|
|
|
rd /S /Q %TOOLS%
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2021-01-12 17:01:34 +01:00
|
|
|
echo copying folder %TOOLS% ...
|
2021-01-10 16:50:35 +01:00
|
|
|
robocopy tools %TOOLS% /MIR /256 /NJH /NFL /NDL
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
|
|
|
echo unpacking BGInfo ...
|
|
|
|
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\BGInfo.zip
|
2021-01-10 17:02:22 +01:00
|
|
|
del /F %TOOLS%\BGInfo.zip 1>nul 2>nul
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
|
|
|
echo unpacking TOTAL commander ...
|
2021-01-10 23:14:52 +01:00
|
|
|
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\totalcmd_951.zip
|
|
|
|
del /F %TOOLS%\totalcmd_951.zip 1>nul 2>nul
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
|
|
|
echo unpacking notepad++ ...
|
|
|
|
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\notepad++.zip
|
2021-01-10 17:02:22 +01:00
|
|
|
del /F %TOOLS%\notepad++.zip 1>nul 2>nul
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
|
|
|
echo unpacking ImapCopy ...
|
|
|
|
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\ImapCopy.zip
|
2021-01-10 17:02:22 +01:00
|
|
|
del /F %TOOLS%\ImapCopy.zip 1>nul 2>nul
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-10 16:50:35 +01:00
|
|
|
|
2021-01-11 08:59:27 +01:00
|
|
|
echo unpacking MediaCreationTool ...
|
|
|
|
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\MediaCreationTool20H2.zip
|
|
|
|
del /F %TOOLS%\MediaCreationTool20H2.zip 1>nul 2>nul
|
2021-01-12 20:23:36 +01:00
|
|
|
echo.
|
2021-01-11 08:59:27 +01:00
|
|
|
|
2021-01-12 20:23:36 +01:00
|
|
|
echo starting %BATCH% ...
|
2021-01-12 20:28:53 +01:00
|
|
|
start /MIN cmd /C %BATCH%
|
2021-01-10 16:50:35 +01:00
|
|
|
echo.
|
2021-01-12 20:23:36 +01:00
|
|
|
|
|
|
|
date /t
|
|
|
|
time /t
|
|
|
|
echo ####### %0 #######
|
|
|
|
echo READY.
|
2021-01-10 16:50:35 +01:00
|
|
|
|