+ 1

Add python script at startup

I'd like the python script to run at every startup. Any ideas?

21st Mar 2018, 3:03 AM
Name
Name - avatar
5 Respostas
+ 6
To help people answer, what operating system? Also include version because startup methods can vary even in a single OS line.
21st Mar 2018, 3:14 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
you can create a batch file that launches your python script and use task scheduler to run the a.m. batch file at start up or login. the first thing i found about getting to task scheduler https://www.isunshare.com/windows-8/open-windows-8-8.1-task-scheduler.html
21st Mar 2018, 6:08 AM
seamiki
seamiki - avatar
+ 1
more details as it is actually very simple: following content (adapted to your needs) should go in the batch file (f.e. myPyScript.bat) c:\thePathToYour\python.exe c:\yourScript.py %* you can schedule myPyScript.bat to be executed according to your needs with task scheduler. see the link for more details: http://www.thewindowsclub.com/how-to-schedule-batch-file-run-automatically-windows-7 in that way you can select to run it with the highest priviledges avoiding that the script asks for administrator rights every time if that is thr case.
21st Mar 2018, 7:56 PM
seamiki
seamiki - avatar
0
Windows 8.1
21st Mar 2018, 3:18 AM
Name
Name - avatar
0
@Jan Markus. They is. I tried to found a way to put the python script in it with some code. The only way I may have found is with a batch. @seamiki. I'm not sure that could help me. I also didn't understand all of it so I'm maybe wrong. The batch file is a good idea. It's for a keylog.
21st Mar 2018, 10:06 AM
Name
Name - avatar