@@ -108,23 +108,52 @@ if '%choiceForDangerousAutoRun%'=='S' goto :MakeSystemRestorePoint
108
108
if '%choiceForDangerousAutoRun% '== 'C' goto :saferSetAutoRun2
109
109
if '%choiceForDangerousAutoRun% '== 'c' goto :saferSetAutoRun2
110
110
if '%choiceForDangerousAutoRun% '== '1' goto :FirstTimeUser
111
- echo ." %choiceForDangerousAutoRun% " is not valid, please try again.
111
+ cls
112
+ echo ." %choiceForDangerousAutoRun% " is not a valid option, please try again.
113
+ echo .
112
114
goto :saferSetAutoRun
113
115
114
116
:saferSetAutoRun2
115
117
@ echo off
116
118
cls
117
119
set AppendToPath = '%appdata% \Sanikdah Software\Ease of Use Command Prompt Auto Run Script'
118
- ping techflash.ga -n 2 > nul
119
- :: Wastes time so that the variable 100% has enough time to update
120
+ echo .Wasting time so that we are 100% certain that the variable has updated before continuing, please wait.....
121
+ ping techflash.ga -n 6 > nul
122
+ :: Wastes time so that the variable 100% has enough time to update to prevent breaking of computers.
120
123
echo .Setting everything...
121
124
set " PATH = %AppendToPath% ;%PATH% "
122
- echo .Done! Restart your computer for it to work!
123
- goto :MainMenu
125
+ echo .Done! Please save any work and restart your computer for it to work!
126
+ echo .Would you like to have the script restart your PC for you?
127
+ set /p doesRestart =
128
+ if not '%doesRestart% '== '' set doesRestart = %doesRestart:~0 ,1 %
129
+ if '%doesRestart% '== 'y' (
130
+ shutdown /t 20 /r
131
+ echo .Restarting in 20 seconds!
132
+ )
133
+ if '%doesRestart% '== 'Y' (
134
+ shutdown /t 20 /r
135
+ echo .Restarting in 20 seconds!
136
+ )
137
+ if '%doesRestart% '== 'n' (
138
+ echo .Going back to the menu!
139
+ timeout 5
140
+ cls
141
+ goto :MainMenu
142
+ )
143
+ if '%doesRestart% '== 'N' (
144
+ echo .Going back to the menu!
145
+ timeout 5
146
+ cls
147
+ goto :MainMenu
148
+ )
149
+ cls
150
+ echo ." %doesRestart% " is not a valid option, please try again.
151
+ echo .
152
+ goto :saferSetAutoRun2
124
153
125
154
126
- @ echo off
127
155
:FirstTimeUser2
156
+ @ echo off
128
157
title Do you want a tutorial?
129
158
echo .Hey! You seem like you ran this program for the first time! Would you like a tutorial on how to use the program?
130
159
set /p wantsTutorial =
@@ -148,7 +177,9 @@ if '%wantsTutorial%'=='n' goto :noTutorial
148
177
if '%wantsTutorial% '== 'N' goto :noTutorial
149
178
if '%wantsTutorial% '== 'no' goto :noTutorial
150
179
if '%wantsTutorial% '== 'No' goto :noTutorial
151
- ECHO . " %wantsTutorial% " is not a valid option, please try again.
180
+ cls
181
+ echo ." %wantsTutorial% " is not a valid option, please try again.
182
+ echo .
152
183
goto :FirstTimeUser
153
184
154
185
@@ -160,9 +191,11 @@ if '%isSureofNoTutorial%'=='y' goto :isSureofNoTutorial
160
191
if '%isSureofNoTutorial% '== 'Y' goto :isSureofNoTutorial
161
192
if '%isSureofNoTutorial% '== 'n' goto :FirstTimeUser
162
193
if '%isSureofNoTutorial% '== 'N' goto :FirstTimeUser
163
- ECHO . " %isSureofNoTutorial% " is not a valid option, please try again.
194
+ cls
195
+ echo ." %isSureofNoTutorial% " is not a valid option, please try again.
196
+ echo .
164
197
goto :noTutorial
165
- ECHO .
198
+
166
199
167
200
:isSureofNoTutorial
168
201
cls
@@ -208,8 +241,9 @@ if '%choice%'=='5= goto :CheckNetworkStatistics
208
241
if '%choice% '== '0' goto :debug
209
242
if '%choice% '== '8' goto :Settings
210
243
if '%choice% '== '9' goto :Help
211
- ECHO " %choice% " is not a valid option, please try again.
212
- ECHO .
244
+ cls
245
+ echo ." %choice% " is not a valid option, please try again.
246
+ echo .
213
247
goto :Choice
214
248
echo .> EndOfChoiceTriggered.txt
215
249
@@ -226,8 +260,7 @@ echo.2. Click on "Create".
226
260
echo .3. Go through the steps of creating the restore point.
227
261
echo .Press any key when you are done.
228
262
pause
229
- cls
230
- goto :MainMenu
263
+ goto :ClearAndMenu
231
264
232
265
:Help
233
266
@ echo off
@@ -246,6 +279,9 @@ if not '%HelpChoice%'=='' set HelpChoice=%HelpChoice:~0,1%
246
279
if '%HelpChoice% '== '1' goto :ClearAndMenu
247
280
if '%HelpChoice% '== '2' goto :wantsTutorial
248
281
if '%HelpChoice% '== '3' goto :Links
282
+ cls
283
+ echo ." %HelpChoice% " is not a valid option, please try again.
284
+ goto :Help
249
285
250
286
:Links
251
287
@ echo off
@@ -269,6 +305,7 @@ if '%LinkChoice%'=='4' start "" https://youtube.com/channel/UCZNRlvLcjqN8nw6YO73
269
305
if '%LinkChoice% '== '5' start " " https://github.com/sanikdah/
270
306
if '%LinkChoice% '== '6' start " " https://discord.com/invite/FnseMDFBH6
271
307
if '%LinkChoice% '== '7' start " " https://twitch.tv/sanikdahh
308
+ cls
272
309
echo " %LinkChoice% " is not a valid option, please try again.
273
310
echo .
274
311
goto :Links
@@ -329,6 +366,8 @@ if '%isSureOfDebugOptions%'=='y' goto :realDebug
329
366
if '%isSureOfDebugOptions% '== 'Y' goto :realDebug
330
367
if '%isSureOfDebugOptions% '== 'n' goto :noDebug
331
368
if '%isSureOfDebugOptions% '== 'N' goto :noDebug
369
+ cls
370
+ echo ." %isSureOfDebugOptions% " is not a valid option, please try again.
332
371
goto :noDebug
333
372
334
373
@@ -340,11 +379,21 @@ goto :MainMenu
340
379
341
380
:realDebug
342
381
@ echo off
343
- echo .
344
- echo Nothing here yet, currently working on the main menu.
345
- echo .Press any key to go back to the Main menu.
346
- pause
347
- goto :MainMenu
382
+ echo .Severly untested options.
383
+ echo . 1. Go back to the main menu.
384
+ echo . 2. Jump directly to any batch label in the script. (Some maybe be intentionally hidden due to being unfinished!)
385
+ echo . 3. The super dangerous stuff (potentially script or **ENTIRE PC BREAKING**)
386
+ echo .Which do you want to do?
387
+ set /p debugChoice =
388
+ if not '%debugChoice% '== '' set debugChoice = %debugChoice:~0 ,1 %
389
+ if '%debugChoice% '== '1' goto :MainMenu
390
+ if '%debugChoice% '== '2' goto :gotoAnyBatchLabel
391
+ if '%debugChoice% '== '3' goto :DangerousDebug
392
+ cls
393
+ echo ." %debugChoice% " is not a valid option, please try again.
394
+ goto :realDebug
395
+
396
+ goto :realDebug
348
397
349
398
:: Settings menu
350
399
:Settings
0 commit comments