0

I'm trying to create a python script that automatically runs at startup but since I need it to work on all platforms it cannot be run with something like Task scheduler on Windows. Is it possible to do that with python ?

1 Answer 1

1

You could try making a batch script that runs at startup. This batch script would cd to the directory containing the python file that you want to run, and ultimately run the python file by doing python main.py.

Sign up to request clarification or add additional context in comments.

3 Comments

How would I go about doing that ?
you can place the .bat file in the Startup folder in windows
I'm going to try and do that but since I don't know batch are there any alternatives ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.