Skip to content

Commit

Permalink
Merge pull request #370 from takitakitanana/master
Browse files Browse the repository at this point in the history
path contains spaces check
  • Loading branch information
carlospolop authored Jul 22, 2023
2 parents 0a1a0d1 + 7c7b17a commit d60fed0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions winPEAS/winPEASbat/winPEAS.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ REM Registry scan of other drives besides
REM /////true or false
SET long=false

REM Check if the current path contains spaces
SET "CurrentFolder=%~dp0"
IF "!CurrentFolder!" NEQ "!CurrentFolder: =!" (
ECHO winPEAS.bat cannot run if the current path contains spaces.
ECHO Exiting.
EXIT /B 1
)

:Splash
ECHO.
CALL :ColorLine " %E%32m((,.,/((((((((((((((((((((/, */%E%97m"
Expand Down

0 comments on commit d60fed0

Please sign in to comment.