for/f"tokens=*"%%a in('python -c "import os; parts = os.getcwd().split(os.path.sep); print(len(parts))"')doif"%%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.
@echo"Error downloading Stable Diffusion UI. Please try re-running this installer. If it doesn't work, please copy the messages in this window, and ask the community at https://discord.com/invite/u9yhsFmEkB or file an issue at https://github.com/cmdr2/stable-diffusion-ui/issues"