path contains spaces check

This commit is contained in:
takitakitanana 2023-07-22 03:27:08 +03:00
parent 0d75c0085a
commit 2cb6af3f27

View File

@ -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 that contains spaces.
ECHO Exiting.
EXIT /B 1
)
:Splash
ECHO.
CALL :ColorLine " %E%32m((,.,/((((((((((((((((((((/, */%E%97m"