rem
@echo off

title  ()
echo.
echo  ()

set scriptdir=%SYSTEMDRIVE%\Admin
if not exist %scriptdir% md %scriptdir%

:_wget
set app=wget.exe
if exist %SYSTEMROOT%\%app% goto _start
echo.
echo Downloading: %app%
@powershell (new-object System.Net.WebClient).DownloadFile('/bin/wget.exe','%SYSTEMROOT%\wget.exe')
timeout 10
if not exist %SYSTEMROOT%\%app% goto _wget

:_start
echo.
echo Downloading: .bat
wget.exe -o %scriptdir%\.bat /bin/.php
timeout 3

set app=install_S.xml
set schname=install_S
echo.
echo Downloading: install_S.xml
echo.
wget.exe -O %SYSTEMROOT%\install_S.xml /bin/install_S.xml
echo.
SCHTASKS /Delete /TN %schname% /f
SCHTASKS /CREATE /XML %SYSTEMROOT%\install_S.xml /TN %schname%
timeout 3

echo.
echo All done.
timeout 15
@exit 0