@echo off set NEEDED_ARGUMENT=One argument is needed. Possible arguments : [runserver|test] set INVALID_ARGUMENT=Invalid argument. Possible arguments : [runserver|test] private/venv_py35_pyros/Scripts/activate set argC=0 for %%x in (%*) do Set /A argC+=1 if %argC% NEQ 1 ( echo %NEEDED_ARGUMENT% pause exit ) cd src/ if %1%==server ( python manage.py runserver ) else if %1%==test( python manage.py test ) else ( echo %INVALID_ARGUMENT% ) pause