w10install/optional/install-snapcontrol.cmd
Michael H.G. Schmidt 4c39265a58 .
2024-02-22 14:24:16 +01:00

30 lines
539 B
Batchfile

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
set TOOLS=%SystemDrive%\tools
set INIFILE=..\scripts\config\snapcontrol.ini
echo ####### %0 #######
echo moving snapcontrol binary to [ %windir% ] ...
move /Y %TOOLS%\snapcontrol.exe %windir% 2>nul
if EXIST %INIFILE% (
if NOT EXIST %windir%\snapcontrol.ini (
echo putting STANDARD inifile in place ...
copy /Y %INIFILE% %windir%
%windir%\snapcontrol /I
) else (
echo inifile already copied. nothing to do!
)
)
echo ####### %0 #######
pause