@echo off

set T=c:\TEMP
set TOOLS=c:\tools
set ZIP=..\software\archerT5E-wifi.zip
set UNPACKDIR="Archer T5E(UN)_V1_191116_Wi-Fi"

if NOT EXIST %ZIP% (
  echo ERROR: %ZIP% not found!
  exit /b
)

echo ####### %0 #######

echo unpacking Archer T5E wifi drivers ...
%TOOLS%\7z x -y -aoa -o"%T%" %ZIP%

echo executing setup ...
start /w %T%\%UNPACKDIR%\win7_8_1_10_64bit\setup.exe

echo cleanup ...
rd /S /Q %T%\%UNPACKDIR%
echo.

echo ####### %0 #######
pause

