I am trying to start a flask application using a .bat file but Iam having a few issues. The cmd seems to get to the line "env\Scripts\activate" then shuts down the cmd window. If I run each line individually in cmd then my application starts fine.
I want to automate it so I don't have input each line to start my application.
I am new to flask in the windows environment and .bat files.
I have tried changing the set lines to $env: but i still get the same problem.
cd C:\Users\admin\Documents\Flask
py -m venv env
env\Scripts\activate
set FLASK_APP=TrialPage.py
set FLASK_ENV=development
flask run --host=0.0.0.0
I would like my flask app to run automatically after executing the .bat file.