ZKING
ZKING

Reputation: 97

Running a batch file to execute a python script using base conda

enter image description hereI have scoured google and SO and cannot get my .bat file to run properly:

this is what I have:

call "C:\ProgramData\Anaconda3\Scripts\activate.bat"
"c:\Users\my name\Documents\04 PRG\VS Code\Python\Scripts\myscript.py" cmd /k

When I run this it opens up my file with VS code and then stalls. I would like it to just run my script without opening anything.

Thoughts?

Upvotes: 1

Views: 2917

Answers (1)

ZKING
ZKING

Reputation: 97

call "C:\ProgramData\Anaconda3\Scripts\activate.bat" 
python "C:\Users\me\Documents\04 PRG\VS Code\Python\Scripts\myscript.py"

Upvotes: 4

Related Questions