1
1
:: Sets the color, disables command feedback, and clears the screen of the version and whatnot text.
2
2
@ echo off
3
+ cls
3
4
color 0a
4
5
:: Debug stuff, making a place for logs
5
6
if exist " Debug" (
@@ -32,12 +33,12 @@ if exist "Ease of Use Command Prompt Auto Run Script" (
32
33
goto :FirstTimeUser
33
34
)
34
35
:EoUCPARS-FolderExists
35
- echo .Launched.txt
36
+ echo .> Launched.txt
36
37
37
38
:: Launches if the previous code detects that this is your first time launching the program
38
39
:FirstTimeUser
39
40
title Do you want a tutorial?
40
- echo . Hey! You seem like you ran this program for the first time! Would you like a tutorial on how to navigate?
41
+ echo .Hey! You seem like you ran this program for the first time! Would you like a tutorial on how to navigate?
41
42
set /p wantsTutorial = Do you want a tutorial?=
42
43
if not '%wantsTutorial% '== '' set choice = %wantsTutorial:~0 ,1 %
43
44
if '%wantsTutorial% '== 'y' goto :wantsTutorial
@@ -49,10 +50,24 @@ if '%wantsTutorial%'=='N' goto :noTutorial
49
50
if '%wantsTutorial% '== 'no' goto :noTutorial
50
51
if '%wantsTutorial% '== 'No' goto :noTutorial
51
52
ECHO . " %wantsTutorial% " is not a valid option, please try again.
53
+ goto :FirstTimeUser
52
54
ECHO .
53
55
54
56
:wantsTutorial
55
- echo . Placeholder tutorial
57
+ echo .Placeholder tutorial.
58
+ set /p wantsTutorial = Do you want to see the tutorial again?
59
+ if not '%wantsTutorial% '== '' set choice = %wantsTutorial:~0 ,1 %
60
+ if '%wantsTutorial% '== 'y' goto :wantsTutorial
61
+ if '%wantsTutorial% '== 'Y' goto :wantsTutorial
62
+ if '%wantsTutorial% '== 'Yes' goto :wantsTutorial
63
+ if '%wantsTutorial% '== 'yes' goto :wantsTutorial
64
+ if '%wantsTutorial% '== 'n' goto :noTutorial
65
+ if '%wantsTutorial% '== 'N' goto :noTutorial
66
+ if '%wantsTutorial% '== 'no' goto :noTutorial
67
+ if '%wantsTutorial% '== 'No' goto :noTutorial
68
+ ECHO . " %wantsTutorial% " is not a valid option, please try again.
69
+ goto :FirstTimeUser
70
+
56
71
57
72
:noTutorial
58
73
set /p isSureofNoTutorial = Are you sure?=
@@ -66,9 +81,11 @@ if '%isSureofNoTutorial%'=='N' goto :FirstTimeUser
66
81
if '%isSureofNoTutorial% '== 'no' goto :FirstTimeUser
67
82
if '%isSureofNoTutorial% '== 'No' goto :FirstTimeUser
68
83
ECHO . " %isSureofNoTutorial% " is not a valid option, please try again.
84
+ goto :noTutorial
69
85
ECHO .
70
86
71
87
:isSureofNoTutorial
88
+ cls
72
89
echo Alright, just go to Help (5) and then Tutorial (2) to view it if you ever want to!
73
90
goto :MainMenu
74
91
@@ -96,6 +113,7 @@ if '%choice%'=='1' goto :GoToRegularCMD
96
113
if '%choice% '== '2' goto :PingGoogle
97
114
if '%choice% '== '3' goto :DISMandSFC
98
115
if '%choice% '== '4' goto :exit
116
+ if '%choice% '== '9' goto :debug
99
117
ECHO " %choice% " is not a valid option, please try again.
100
118
ECHO .
101
119
goto :Choice
@@ -108,14 +126,34 @@ goto :leave
108
126
echo .> EndOfGoToRegualarCMDTriggered.txt
109
127
110
128
:PingGoogle
111
- @ echo on
129
+ @ echo off
112
130
title Pinging Google......
113
131
ping google.com -n 1 > PingStats.txt
114
- if !errorlevel! == 0 set InternetState = up else set InternetState=down
115
- echo . Internet is %InternetState% !
132
+ if %errorlevel% == 0 (set InternetState=up) else (set InternetState=down)
133
+ cls
134
+ echo .
135
+ echo .Internet is %InternetState% !
116
136
goto :MainMenu
117
137
echo .> EndOfPingGoogleTriggered.txt
118
138
139
+
140
+ :: Debug options, to be accessible by those who know exactly what they are doing
141
+ :debug
142
+ @ echo off
143
+ cls
144
+ echo .====WARNING========WARNING=======WARNING=====
145
+ echo .====WARNING========WARNING=======WARNING=====
146
+ echo .====WARNING========WARNING=======WARNING=====
147
+ echo .THESE ARE DEBUG OPTIONS AND **CAN** BREAK THE PROGRAM!!
148
+ echo .ARE YOU **101% POSITIVE** THAT YOU NEED THESE?
149
+ set /p isSureOfDebugOptions = Say " I understand that the creator takes no responsibilty in what can happen if I, the user, breaks part of the program, by using explictly stated as options for DEBUGGING purposes."
150
+ if '%isSureOfDebugOptions% '== 'I understand that the creator takes no responsibilty in what can happen if I, the user, breaks part of the program, by using explictly stated as options for DEBUGGING purposes.'
151
+ ( echo .> WellThisWorks.txt
152
+ goto :realDebug )
153
+ else (goto :MainMenu)
154
+
155
+ :: Debug options don't exist as it would be accessible even if you didn't aggree to the terms.
156
+
119
157
:: Simplest one of them all, exits the shell
120
158
:exit
121
159
exit
0 commit comments