Search code examples
pythonstartup

Open python program on system startup


I need my program to launch on system startup or user login. I have played around a little with the scheduler, but I'm pretty new to that and I couldn't get it to work. Basically I need to save something in the code to the startup registry.

It might also be worth to note that I will be turning this into an exe with pyinstaller, but that shouldn't make too much of a difference I believe.


Solution

  • Windows 8 / 10 startup folder location

    The Current Users Startup folder in Windows 8 and 10 is located at:

    C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    

    These programs start up for the current logged in user only. To directly access this folder, open Run, type shell:startup and hit Enter.

    Screenshot