Skip to content

Commit

Permalink
Updated to 1.0.0.9
Browse files Browse the repository at this point in the history
Fixed Maximum setlocal recursion level reached bug. Issue not recorded.
  • Loading branch information
HeyITGuyFixIt authored Nov 12, 2018
1 parent 9526e6f commit 7df3bf3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Batch Prompt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
@ECHO:Please report issues at the following URL:
@ECHO: https://github.com/HeyITGuyFixIt/Beta-Batch-Prompt/issues
@TIMEOUT /T 02>nul
@SETLOCAL EnableDelayedExpansion
@GOTO SETTINGS
:SETTINGS
@ECHO OFF
@REM Change the color of the console
@SET "COLORS=0A"
@REM Set to TRUE to have ECHO equal ON or set to FALSE to have ECHO equal OFF when started
@SET "ECHOTOGGLE=TRUE"
@REM Replace %USERPROFILE% with whatever location you would like to start with. %USERPROFILE% is equal to "C:\Users\<your username>"
@SET "CDDIR=%USERPROFILE%"
@GOTO START
:START
Expand All @@ -30,9 +32,8 @@
@CD %CDDIR%
@COLOR %COLORS%
@CLS
@ECHO:Beta Batch Prompt [Version 1.0.0.8]
@ECHO:Beta Batch Prompt [Version 1.0.0.9]
@ECHO:Copyright (c) 2018 Christian Sirolli
@ENDLOCAL
@IF /I "%ECHOTOGGLE%"=="true" (GOTO CMDON)
@IF /I "%ECHOTOGGLE%"=="false" (GOTO CMDOFF)
:CMDOFF
Expand All @@ -41,7 +42,6 @@
@SET "ECHO=off"
@SET "CMD="
@SET /P CMD=""
@SETLOCAL EnableDelayedExpansion
@IF /I "%CMD%"=="" (GOTO CMDOFF)
@IF /I "%CMD%"=="@ECHO OFF" (SET "ECHOTOGGLE=false" && GOTO CMDOFF)
@IF /I "%CMD%"=="ECHO OFF" (SET "ECHOTOGGLE=false" && GOTO CMDOFF)
Expand Down Expand Up @@ -86,7 +86,6 @@
@if not errorlevel 1 (
%CMD%
) else (
ENDLOCAL
CALL %CMD%
))))))
:CONTINUEOFF
Expand All @@ -99,7 +98,6 @@
@ECHO.
@SET "CMD="
@SET /P "CMD=%CDDIR%>"
@SETLOCAL EnableDelayedExpansion
@IF /I "%CMD%"=="" (GOTO CMDON)
@IF /I "%CMD%"=="@ECHO OFF" (SET "ECHOTOGGLE=false" && GOTO CMDOFF)
@IF /I "%CMD%"=="ECHO OFF" (SET "ECHOTOGGLE=false" && GOTO CMDOFF)
Expand Down Expand Up @@ -144,13 +142,13 @@
@if not errorlevel 1 (
%CMD%
) else (
ENDLOCAL
CALL %CMD%
))))))
:CONTINUEON
@SET "CDDIR=%CD%"
@GOTO CMDON
:EXIT
@ENDLOCAL
@CD %LOCATION%
@ECHO OFF
@CSCRIPT //nologo "%~f0?.wsf" %*
Expand Down

0 comments on commit 7df3bf3

Please sign in to comment.