diff --git a/scripts/on_env_start.bat b/scripts/on_env_start.bat index 2a93d3dc..f63ba3a4 100644 --- a/scripts/on_env_start.bat +++ b/scripts/on_env_start.bat @@ -26,19 +26,19 @@ if "%update_branch%"=="" ( set update_branch=main ) -@>nul findstr /m "sd_install_complete" scripts\install_status.txt -@if "%ERRORLEVEL%" NEQ "0" ( - for /f "tokens=*" %%a in ('python -c "import os; parts = os.getcwd().split(os.path.sep); print(len(parts))"') do if "%%a" NEQ "2" ( - echo. & echo "!!!! WARNING !!!!" & echo. - echo "Your 'stable-diffusion-ui' folder is at %cd%" & echo. - echo "The 'stable-diffusion-ui' folder needs to be at the top of your drive, for e.g. 'C:\stable-diffusion-ui' or 'D:\stable-diffusion-ui' etc." - echo "Not placing this folder at the top of a drive can cause errors on some computers." - echo. & echo "Recommended: Please close this window and move the 'stable-diffusion-ui' folder to the top of a drive. For e.g. 'C:\stable-diffusion-ui'. Then run the installer again." & echo. - echo "Not Recommended: If you're sure that you want to install at the current location, please press any key to continue." & echo. +@REM @>nul findstr /m "sd_install_complete" scripts\install_status.txt +@REM @if "%ERRORLEVEL%" NEQ "0" ( +@REM for /f "tokens=*" %%a in ('python -c "import os; parts = os.getcwd().split(os.path.sep); print(len(parts))"') do if "%%a" NEQ "2" ( +@REM echo. & echo "!!!! WARNING !!!!" & echo. +@REM echo "Your 'stable-diffusion-ui' folder is at %cd%" & echo. +@REM echo "The 'stable-diffusion-ui' folder needs to be at the top of your drive, for e.g. 'C:\stable-diffusion-ui' or 'D:\stable-diffusion-ui' etc." +@REM echo "Not placing this folder at the top of a drive can cause errors on some computers." +@REM echo. & echo "Recommended: Please close this window and move the 'stable-diffusion-ui' folder to the top of a drive. For e.g. 'C:\stable-diffusion-ui'. Then run the installer again." & echo. +@REM echo "Not Recommended: If you're sure that you want to install at the current location, please press any key to continue." & echo. - pause - ) -) +@REM pause +@REM ) +@REM ) @>nul findstr /m "sd_ui_git_cloned" scripts\install_status.txt @if "%ERRORLEVEL%" EQU "0" (