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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -