-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
30 lines (27 loc) · 831 Bytes
/
Copy pathstart.bat
File metadata and controls
30 lines (27 loc) · 831 Bytes
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
@echo off
chcp 1251 > nul
title Windows Optimizer
echo ===========================================
echo WINDOWS OPTIMIZER
echo ===========================================
echo.
echo Select language:
echo.
echo 1. English
echo 2. Russian
echo.
choice /c 12 /n /m "Your choice: "
if errorlevel 2 goto russian
if errorlevel 1 goto english
:english
echo.
echo Starting in English...
powershell -ExecutionPolicy Bypass -Command "Start-Process powershell -ArgumentList '-ExecutionPolicy Bypass -NoProfile -File \"%~dp0main.ps1\" -Language en' -Verb RunAs"
goto end
:russian
echo.
echo Starting in Russian...
powershell -ExecutionPolicy Bypass -Command "Start-Process powershell -ArgumentList '-ExecutionPolicy Bypass -NoProfile -File \"%~dp0main.ps1\" -Language ru' -Verb RunAs"
:end
echo.
pause