-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunner.bat
More file actions
26 lines (23 loc) · 712 Bytes
/
runner.bat
File metadata and controls
26 lines (23 loc) · 712 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
python --version 2>&1 | findstr "3."
if ERRORLEVEL 1 GOTO NOPY
pip --version> nul 2>&1
if ERRORLEVEL 1 GOTO NOPIP
ping -n 1 example.com> nul 2>&1
if ERRORLEVEL 1 GOTO NOIN
pip install --upgrade selenium
if exist Text_Repeat.py (
start "New Window" cmd /c python Text_Repeat.py
)
else (
START CMD /C "@echo off & mode con cols=40 lines=2 & ECHO %username% did something wrong && PAUSE"
)
exit
:NOIN
START CMD /C "@echo off & mode con cols=40 lines=2 & ECHO No Internet Connectivity && PAUSE"
GOTO :EOF
:NOPY
START CMD /C "@echo off & mode con cols=40 lines=2 & ECHO Python3 is not Found && PAUSE"
GOTO :EOF
:NOPIP
START CMD /C "@echo off & mode con cols=40 lines=2 & ECHO Pip3 is not Found && PAUSE"