2020-12-21 16:40:22 +01:00
|
|
|
@echo off
|
2020-12-20 19:59:09 +01:00
|
|
|
set T="c:\TEMP"
|
|
|
|
set TOOLS="c:\tools"
|
|
|
|
set SCRIPTS="c:\scripts"
|
2020-12-20 13:37:23 +01:00
|
|
|
|
2020-12-20 20:47:06 +01:00
|
|
|
echo ####### SetupComplete.cmd #######
|
2020-12-20 13:37:23 +01:00
|
|
|
|
2020-12-20 20:30:42 +01:00
|
|
|
echo killing some processes...
|
|
|
|
taskkill /F /IM ssh-agent.exe
|
|
|
|
taskkill /F /IM ssh.exe
|
|
|
|
|
|
|
|
echo restart explorer ...
|
|
|
|
taskkill /F /IM explorer.exe & start explorer.exe
|
|
|
|
|
2020-12-20 19:59:09 +01:00
|
|
|
echo deleting %TOOLS% and %SCRIPTS% ...
|
|
|
|
rd /S /Q %TOOLS%
|
|
|
|
rd /S /Q %SCRIPTS%
|
2020-12-20 13:37:23 +01:00
|
|
|
|
2020-12-20 19:59:09 +01:00
|
|
|
echo creating directories ...
|
|
|
|
mkdir %T% 1>nul 2>nul
|
|
|
|
mkdir %TOOLS% 1>nul 2>nul
|
|
|
|
mkdir %SCRIPTS% 1>nul 2>nul
|
|
|
|
mkdir %SCRIPTS%\conf 1>nul 2>nul
|
|
|
|
mkdir %SCRIPTS%\desktop 1>nul 2>nul
|
|
|
|
mkdir %SCRIPTS%\tweaks 1>nul 2>nul
|
2020-12-20 13:37:23 +01:00
|
|
|
|
2020-12-20 19:59:09 +01:00
|
|
|
echo getting TOOLS from webserver ...
|
2020-12-22 16:07:56 +01:00
|
|
|
ftp -i -s:%WINDIR%\Setup\Scripts\ToolsDownload.ftp
|
|
|
|
del %WINDIR%\Setup\Scripts\ToolsDownload.ftp
|
2020-12-20 13:37:23 +01:00
|
|
|
|
2020-12-20 20:47:06 +01:00
|
|
|
echo ####### SetupComplete.cmd #######
|
2020-12-20 19:59:09 +01:00
|
|
|
|
|
|
|
echo STARTING setup script...
|
|
|
|
call %SCRIPTS%\1st-setup.cmd
|
2020-12-20 13:37:23 +01:00
|
|
|
|