1
1
:: Sets the color, disables command feedback, and clears the screen of the version and whatnot text.
2
+ :Init
2
3
@ echo off
3
4
cls
4
5
cd %appdata%
@@ -23,8 +24,15 @@ if exist "Ease of Use Command Prompt Auto Run Script" (
23
24
)
24
25
:EoUCPARS-FolderExists
25
26
echo .> Launched.txt
27
+ goto :ReadBackColor
28
+
29
+ :ReadBackColor
30
+ set /p color = < Color.txt
31
+ ping techflash.ga -n 1 > nul
32
+ color %color%
26
33
goto :MainMenu
27
34
35
+
28
36
:: Launches if the previous code detects that this is your first time launching the program
29
37
:FirstTimeUser
30
38
title Do you want a tutorial?
@@ -93,27 +101,26 @@ echo.>MainMenuTriggered.txt
93
101
94
102
95
103
:: Some code to make choices
104
+ :: NOTE TO FUTURE SELF:
105
+ :: For some reason this code only allows for a SINGLE character to be used as a choice thingy, so like, 0-9 is fine, but not 10, etc.
96
106
:Choice
97
107
set choice =
98
108
echo .
99
- echo . 1: Go to the regular command line and run your own commands!
100
- echo . 2: Test your internet connection by pinging Google!
101
- echo . 3: Repair your system by running DISM and System File Checker!
102
- echo . 4: Get your public IP!
103
- echo . 5: Check network statistics!
104
- echo . 8: Settings
105
- echo . 9: Access Help
109
+ echo . 1: Go to the regular command line and run your own commands!
110
+ echo . 2: Test your internet connection by pinging Google!
111
+ echo . 3: Repair your system by running DISM and System File Checker!
112
+ echo . 4: Get your public IP!
113
+ echo . 5: Check network statistics!
114
+ echo . 8: Settings
115
+ echo . 9: Access Help
106
116
set /p choice = Your choice?=
107
117
if not '%choice% '== '' set choice = %choice:~0 ,1 %
108
118
if '%choice% '== '1' goto :GoToRegularCMD
109
119
if '%choice% '== '2' goto :PingGoogle
110
120
if '%choice% '== '3' goto :DISMandSFC
111
121
if '%choice% '== '4' goto :CurlIPme
112
122
if '%choice% '== '5= goto :CheckNetworkStatistics
113
- if '%choice% '== 'exit' goto :exit
114
- if '%choice% '== 'leave' goto :exit
115
- if '%choice% '== 'die' goto :exit
116
- if '%choice% '== 'debug' goto :debug
123
+ if '%choice% '== '0' goto :debug
117
124
if '%choice% '== '8' goto :Settings
118
125
if '%choice% '== '9' goto :Help
119
126
ECHO " %choice% " is not a valid option, please try again.
@@ -165,10 +172,13 @@ echo.====WARNING========WARNING=======WARNING=====
165
172
echo .THESE ARE DEBUG OPTIONS AND **CAN** BREAK THE PROGRAM!!
166
173
echo .ARE YOU **101% POSITIVE** THAT YOU NEED THESE?
167
174
echo .
168
- echo .Say " I understand" , to prove the you understand this aggreement: 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.
175
+ echo .Do you understand this aggreement? 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.
176
+ echo .
169
177
set /p isSureOfDebugOptions =
170
- if '%isSureOfDebugOptions% '== 'I understand' goto :realDebug
171
- if '%isSureOfDebugOptions% '== 'i understand' goto :useBetterGrammarDebug
178
+ if '%isSureOfDebugOptions% '== 'y' goto :realDebug
179
+ if '%isSureOfDebugOptions% '== 'Y' goto :realDebug
180
+ if '%isSureOfDebugOptions% '== 'n' goto :noDebug
181
+ if '%isSureOfDebugOptions% '== 'N' goto :noDebug
172
182
goto :noDebug
173
183
174
184
@@ -179,18 +189,18 @@ ping techflash.ga -n 1 > nul
179
189
goto :noDebug
180
190
181
191
:realDebug
182
- echo Nothing here yet, currently working on the menu.
192
+ echo .
193
+ echo Nothing here yet, currently working on the main menu.
194
+ echo .Press any key to go back to the Main menu.
195
+ pause
183
196
goto :MainMenu
184
197
185
- :useBetterGrammarDebug
186
- echo Use better grammar next time, CAPITALIZE > :(
187
- goto :realDebug
188
-
189
198
:: Settings menu
190
199
:Settings
191
200
@ echo off
192
201
cls
193
202
echo .Welcome to the settings menu! Here you can modify some settings!
203
+ echo .
194
204
echo .1: Modify the default color when you start the script.
195
205
echo .2: Not yet created just felt like adding this here. :P
196
206
set /p SettingsChoice =
@@ -208,54 +218,52 @@ goto :Settings
208
218
:: A basic section of code for setting the default color of the shell.
209
219
:color
210
220
@ echo off
211
- echo .Welcome to the color selection menu!
221
+ cls
222
+ echo .Welcome to the color selection menu! (BROKEN)
212
223
echo .Please enter a Command Prompt-format color code.
213
- echo .
214
224
set /p ColorCode =
215
225
echo .Great! Does this look good?
216
226
color %ColorCode%
217
227
set /p YesNoColor =
218
228
if not '%YesNoColor% '== '' set choice = %YesNoColor% :~0,1%
219
229
if '%YesNoColor% '== 'y' goto :SetColor
220
230
if '%YesNoColor% '== 'Y' goto :SetColor
221
- if '%YesNoColor% '== 'Yes' goto :SetColor
222
- if '%YesNoColor% '== 'yes' goto :SetColor
223
231
if '%YesNoColor% '== 'n' goto :color
224
232
if '%YesNoColor% '== 'N' goto :color
225
- if '%YesNoColor% '== 'no' goto :color
226
- if '%YesNoColor% '== 'No' goto :color
227
233
ECHO . " %YesNoColor% " is not a valid option, please try again.
228
234
goto :color
229
235
230
236
:: Some code to actually set the color code.
231
237
:SetColor
232
- @ echo on
238
+ @ echo off
233
239
echo .Great! Would you like to save the color code
234
240
echo .so that it is applied every time you start the
235
241
echo .script?
236
242
set /p YesNoColor2 =
237
243
if not '%YesNoColo2r% '== '' set choice = %YesNoColor2% :~0,1%
238
244
if '%YesNoColor2% '== 'y' goto :SetColor2
239
245
if '%YesNoColor2% '== 'Y' goto :SetColor2
240
- if '%YesNoColor2% '== 'Yes' goto :SetColor2
241
- if '%YesNoColor2% '== 'yes' goto :SetColor2
242
246
if '%YesNoColor2% '== 'n' goto :MainMenu
243
247
if '%YesNoColor2% '== 'N' goto :MainMenu
244
- if '%YesNoColor2% '== 'no' goto :MainMenu
245
- if '%YesNoColor2% '== 'No' goto :MainMenu
246
248
ECHO . " %YesNoColor% " is not a valid option, please try again.
247
249
goto :color
248
250
249
251
:: Some code to for real this time set the color code.
250
252
:SetColor2
251
- @ echo on
253
+ @ echo off
252
254
echo %ColorCode% > Color.txt
255
+ ping techflash.ga -n 2 > nul
253
256
set /p VerifyColorCode = < Color.txt
257
+ ping techflash.ga -n 2 > nul
258
+ echo . The file now needs some modification, I will open Notepad and show you what you have to do.
259
+ echo . (Note that this process is temporary and only needed to fix a strange bug that occurs.)
260
+ start %windir% \notepad.exe " %appdata% \Sanikdah Software\Ease of Use Command Prompt Auto Run Script\Color.txt"
261
+ echo . Now, click at the bottom area of the window, your text caret\cursor should be at the line below your color code.
262
+ echo . Then press Backspace 2 times, to delete that extra line, and the extra space after the color code.
263
+ echo . Now, save and exit the file. And press any key to resume the program with your new color code!
254
264
pause
255
- if not '%ColorCode% '== '%VerifyColorCode% ' echo . Something went wrong when saving the color code,
256
- if not '%ColorCode% '== '%VerifyColorCode% ' echo . please report this to the developer and give
257
- if not '%ColorCode% '== '%VerifyColorCode% ' echo . the error code " 2" .
258
- pause
265
+ goto :Init
266
+
259
267
260
268
261
269
:: Simplest one of them all, exits the shell
0 commit comments