-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli_windows.bat
More file actions
44 lines (39 loc) 路 1.03 KB
/
Copy pathcli_windows.bat
File metadata and controls
44 lines (39 loc) 路 1.03 KB
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
@echo off
REM NetBoozt CLI Launcher (from repo root)
REM By LOUST (www.loust.pro)
title NetBoozt CLI
cd /d "%~dp0"
echo.
echo ========================================
echo NetBoozt Development CLI
echo By LOUST (www.loust.pro)
echo ========================================
echo.
REM Verificar si Python est谩 instalado
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: Python no encontrado
echo Instala Python 3.13+ desde python.org
echo.
pause
exit /b 1
)
REM Verificar si ya tiene admin
net session >nul 2>&1
if %errorlevel% == 0 (
echo [ADMIN MODE ACTIVE]
echo.
REM Ya tiene admin - ejecutar directamente
python cli_windows.py
if %errorlevel% neq 0 (
echo.
echo Error al ejecutar CLI
pause
)
) else (
echo [Standard Mode - Some features require admin]
echo Requesting administrator privileges...
echo.
REM Solicitar admin usando PowerShell
powershell -Command "Start-Process cmd -ArgumentList '/c cd /d %~dp0 && cli_windows.bat' -Verb RunAs"
)