Start a virtualenv with .bat file

0

I have the following .bat

cd C:\Users\SERVIDOR-ARQUIVOS\Documents\workspace\email\.venv\Scripts
activate.bat
cd C:\Users\SERVIDOR-ARQUIVOS\Documents\workspace\email\src
python manage.py (comando personalizado)

It goes to the folder but closes when it runs activate.bat , I wanted to put this script to run once a day.

If someone knows how to help me, I am grateful.

    
asked by anonymous 19.02.2018 / 21:49

1 answer

2

To run another .bat within your file, you need to call it using

call activate.bat

Assuming they are in the same folder

If it does not call, it interrupts the current process to execute the new one.

    
19.02.2018 / 22:05