w10install/optional/install-snapcontrol.cmd

24 lines
408 B
Batchfile
Raw Normal View History

2022-11-13 22:12:39 +01:00
@echo off
call check-for-admin
set T=C:\TEMP
set ZIP=..\software\snapcontrol.zip
if NOT EXIST %ZIP% (
echo ERROR: %ZIP% not found!
exit /b
)
echo ####### %0 #######
7z e -y -aoa -o%T%\snapcontrol %ZIP% 1>nul
%T%\snapcontrol\snapcontrol.exe /I
copy /Y %T%\snapcontrol\LICENSE.txt c:\snapshot
copy /Y %T%\snapcontrol\README.md c:\snapshot
rd /S /Q %T%\snapcontrol
echo.
echo ####### %0 #######
pause