Skip to content

Commit 0607cb0

Browse files
committed
Update a few things.
1 parent 91e153e commit 0607cb0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

AutoRunWithCMD.cmd

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ goto :FirstTimeUser
7474

7575
:: Sets the autoRun value
7676
:setAutoRun
77+
@echo off
78+
cls
7779
echo. Are you CERTAIN that you want to do this? It is difficult to undo!
7880
set /p isSureOfDangerousAutoRun=
7981
if not '%isSureOfDangerousAutoRun%'=='' set isSureOfDangerousAutoRun=%isSureOfDangerousAutoRun:~0,1%
@@ -85,11 +87,14 @@ echo."%isSureOfDangerousAutoRun%" is not valid, please try again.
8587
goto :setAutoRun
8688

8789
:setAutoRun2
88-
echo.This will NOT work if you have renamed the file.
89-
:goto :setAutoRun2
90+
@echo off
91+
echo.This will NOT work if you have renamed the file. Will work on fixing that by 0.1!
92+
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d "%appdata%/Sanikdah Software/AutoRunWithCMD.cmd" /f > nul
93+
goto :setAutoRun2
9094

9195
:saferSetAutoRun
9296
@echo off
97+
cls
9398
echo.This will append the directory of the file to your system PATH, so you can run it with a command.
9499
echo.==WARNING======WARNING=====WARNING===
95100
echo.==WARNING======WARNING=====WARNING===
@@ -436,7 +441,10 @@ set /p SettingsChoice=
436441
if not '%SetttingsChoice%'=='' set SettingsChoice=%SettingsChoice:~0,1%
437442
if '%SettingsChoice%'=='1' goto :MainMenu
438443
if '%SettingsChoice%'=='2' goto :color
439-
if '%SettingsChoice%'=='3' goto :FirstTimeUser1.5
444+
if '%SettingsChoice%'=='3' (
445+
cls
446+
goto :FirstTimeUser1.5
447+
)
440448

441449
:: A label used for when I wanted to add an option but it isn't implemented yet or is in a state where it can't be used. Or if I just haven't though of anything to put in that slot yet.
442450
:Nothing

0 commit comments

Comments
 (0)