@echo off set /p NASDIR=Enter the full path to your NAS directory: if "%NASDIR%"=="" ( echo No directory provided. Exiting. exit /b ) python psthumbgen.py --directory "%NASDIR%" pause