简体   繁体   中英

How to make python script autorun on windows startup?

I have a.python script which I convert to.exe file trough autopy-to-exe command and I would like that coverted.exe file always running, so when computer restarts it automaticly starts.

So I want to create in.python script that. I want to configure it so when somebody downloads.exe file and runs it, that.exe file will be in his startup so next time when he logs in that.exe will be working as well.

The simplest way to accomplish this is by placing it in your Startup directory. Windows will launch anything in there when someone signs in. You may also set this to run when any user logs in by using the "All Users" Startup folder.

This is the filepath for the Startup folder, for your user account:
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup
and you can copy and paste that path right into Windows Explorer's address bar to get there. Drop in the.exe and it will launch on the next login.

Reference for Startup folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM