-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
41 lines (34 loc) · 804 Bytes
/
run.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
@echo off
setlocal
REM forcecheck 2>nul
if defined forcecheck (
echo force checking
) else (
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed. Opening python.org...
start https://www.python.org/
pause
exit /b
) else (
echo Python is installed.
)
pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo pip is not installed. Please install pip and try again.
pause
exit /b
) else (
echo pip is installed.
)
)
echo Press Enter to install getmac and run main.py...
pause >nul
echo Installing getmac...
python -m pip install getmac -q
echo getmac installation completed.
echo Running main.py...
python main.py
echo main.py has finished executing.
endlocal
exit