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.

3
  • How would I go about doing that ?
    – user18465514
    Jun 24, 2022 at 18:28
  • you can place the .bat file in the Startup folder in windows
    – Kandy
    Jun 25, 2022 at 9:52
  • I'm going to try and do that but since I don't know batch are there any alternatives ?
    – user18465514
    Jun 26, 2022 at 14:22

Your Answer

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