-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetMap.bat
More file actions
26 lines (22 loc) · 562 Bytes
/
Copy pathNetMap.bat
File metadata and controls
26 lines (22 loc) · 562 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
@echo off
rem NetMap launcher - starts netmap.py with no console window.
rem Keep this file in the same folder as netmap.py.
cd /d "%~dp0"
where pythonw >nul 2>nul
if %errorlevel%==0 (
start "" pythonw netmap.py
exit /b
)
where pyw >nul 2>nul
if %errorlevel%==0 (
start "" pyw netmap.py
exit /b
)
rem Fallback: visible (minimized) console via regular python.
where python >nul 2>nul
if %errorlevel%==0 (
start "NetMap" /min python netmap.py
exit /b
)
echo Python was not found. Install it from python.org (check "Add to PATH").
pause