REM No grep in batch, but Powershell supports it. We can convert script to powershell REM path=$(cat ../.env | grep -oP 'BIOMEDISA_HOST_SRC_PATH=\K.*') SET BIOMEDISA_PATH=C:/Users/csa/biomedisa/ SET PYTHON_PATH="C:\Users\csa\AppData\Roaming\Python\Scripts" SET PATH=%PATH%;%PYTHON_PATH%; SET PYTHONPATH=%BIOMEDISA_PATH%;%PYTHONPATH% SET DJANGO_SETTINGS_MODULE=biomedisa.settings SET BIOMEDISA_SRC_PATH="%BIOMEDISA_PATH%" SET MYSQL_HOST=127.0.0.1 SET REDIS_HOST="localhost" REM RQ is not working on Windows due to absent (clone). RQ-win project doesn't work with current version of RQ (but probably easy to fix) REM cd "%BIOMEDISA_PATH%" || exit -1 REM %PYTHON_PATH%\rqworker -w rq_win.WindowsWorker -u http://localhost first_queue REM This fails since different paths are written to MySQL database from the containers.... REM cd biomedisa_features/random_walk REM python rw_main.py C:\Users\csa\biomedisa\media\images\tumor.tif C:\Users\csa\biomedisa\media\images\labels.tumor.tif