'Automatic startup of python program named MPF in an virtual enviroment after windows booting up

Trying to automate a program (MPF) to start in a virtual enviroment on Windows 10 after windows has booted up -

Currently I am opening/starting from command prompt

First line:

C:\Users\mandr\mpfenv\scripts\activate.bat

then

C:\Users\mandr\mpfenv\scripts\activate.ps1

change directory to cd C:\pinball\My_machine

So looks like this:-

C:\pinball\My_machine> 

Then add mpf: So looks like this:-

C:\pinball\My_machine>mpf

Have been searching for weeks to try to find a solution - with no joy.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source