2

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.

5
  • 1
    On what OS are you? Commented Nov 1, 2016 at 10:44
  • I'm on windows 10 Commented Nov 1, 2016 at 10:45
  • Take a look here Commented Nov 1, 2016 at 10:45
  • @StamKaly nice answer Commented Nov 1, 2016 at 10:47
  • Thanks for the suggestion, but this requires me to manually put it into the startup registry. I need the program to automatically do this so that my friends who also installs it gets this as well. If it is possible to make the program do what the link suggest automatically I can look into that Commented Nov 1, 2016 at 10:48

2 Answers 2

2

you can use the old-good startup folder of windows, adding a bat file running your script or its exe version obtained with pyinstaller.

Charlie

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

Comments

1

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

4 Comments

I dont think it does for windows 8+
He is using windows 10
Yes, I need the program to automatically get put into that folder when you launch it :)
make a batch file and include this line "move c:\YourScript.py C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.