aboutsummaryrefslogtreecommitdiffstats
path: root/partmgr-win.bat
blob: b5706b9ac8a3f650f147766ab5768958f60e69ee (plain)
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

SET PYPROG=partmgr-gui


SETLOCAL ENABLEDELAYEDEXPANSION

SET PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32
FOR /D %%f IN ( C:\PYTHON* ) DO SET PATH=!PATH!;%%f

py -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_py

python3 -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_python3

python -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_python

echo Did not find Python 3.x in the PATH.
echo Please make sure Python 3.x is installed correctly.
pause
goto end


:exec_py
@ECHO ON
py -3 -O %PYPROG%
GOTO end


:exec_python3
@ECHO ON
python3 -O %PYPROG%
GOTO end


:exec_python
@ECHO ON
python -O %PYPROG%
GOTO end


:end
bues.ch cgit interface