-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBNR.bat
46 lines (38 loc) · 1.16 KB
/
BNR.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
set server_path = %~dp0
REG ADD "HKCU\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True
cd %USERPROFILE%\Desktop
echo. 2>setup.bat
echo. 2>setup.log
echo @echo off>>setup.bat
echo.
echo -------------------------------------------------------------------------
echo Type help to get a list of the software supported by BNR.
echo Type exit to start installing software.
echo -------------------------------------------------------------------------
echo.
:start
set /P software=Enter What software do you need?
echo %software%>>setup.log
if "%software%" == "exit" (
echo Thank you for using BNR have and have a nice day.
echo call %server_path%\BNR_files\shutdown.bat>>setup.bat
choice /d y /t 1 > nul
%USERPROFILE%\Desktop\setup.bat
exit
)
if "%software%" == "help" (
%server_path%\BNR_files\help.log|more
goto start
)
if "%software%" == "update" (
call %server_path%\update_help.bat
)
if "%software%" == "add" (
call %server_path%\add_to_BNR.bat
) else (
echo call %server_path%\%software%.bat>>setup.bat
call %server_path%\update_help.bat
goto start
)