-
Notifications
You must be signed in to change notification settings - Fork 0
/
conhost_example.bat
71 lines (47 loc) · 1000 Bytes
/
conhost_example.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@ECHO OFF
IF EXIST "%UserProfile%\conhost_example_booted.txt" (
GOTO BOOTED
) ELSE (
> "%UserProfile%\conhost_example_booted.txt" ECHO BOOTED
Start /Separate conhost conhost_example.bat
Exit
)
:BOOTED
DEL "%UserProfile%\conhost_example_booted.txt" /f /q
REM DO STUFF
:ROOTMENU
cls
ECHO CONHOST EXAMPLE ROOT MENU
ECHO[
ECHO 1. Robert Jene on YouTube
ECHO 2. ipconfig
ECHO 3. ping google
ECHO[
Set /P Choice=Type the option and press enter:
IF /I "%Choice%"=="1" GOTO robertJeneYouTube
IF /I "%Choice%"=="2" GOTO doIpConfig
IF /I "%Choice%"=="3" GOTO pingYouTube
IF /I "%Choice%"=="EXIT" GOTO endOfLine
ECHO[
ECHO "%Choice%" is invalid. Please try again.
ECHO[
GOTO ROOTMENU
:robertJeneYouTube
ECHO[
start https://www.youtube.com/@RobertJene
ECHO[
PAUSE
GOTO ROOTMENU
:doIpConfig
ECHO[
ipconfig
ECHO[
PAUSE
GOTO ROOTMENU
:pingYouTube
ECHO[
ping www.youtube.com
ECHO[
PAUSE
GOTO ROOTMENU
:endOfLine