windows - Cannot run python server using batch file -


here commands in batch:

d: cd d:\startup\venv\scripts activate cd d:\startup\ python manage.py runserver 

commands after "activate" not executed reasons. tried put "cmd /k activate" instead "activate" result still same except command line still open. wrong here

i suppose activate batch file , therefore needed is:

cd /d d:\startup\venv\scripts call activate.bat cd d:\startup python.exe manage.py runserver 

without command call processing of batch file continues on other batch file without returning reason why last 2 lines never executed. run in command prompt window call /? , read output , more details see example answer on how call batch file in parent folder of current batch file?

command cd parameter /d makes possible change directory , drive @ same time cd /? executed in command prompt window explains.

in batch files advisable specify batch files , executables file extension.


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -