How to write a python program that automatically starts when windows start?

試著忘記壹切 提交于 2020-01-29 09:51:39

问题


I'm writing a program using python 2.6 and pyqt4. I want this program to automatically start whenever windows stars (something like uTorrent client). How do I make this work? I am using windows 7.


回答1:


You can just place a shortcut in the "Startup" folder, in the windows start menu.




回答2:


You can compile your python script into an exe and add it to your startup items: Start > Programs > Accessories > System Tools > Scheduled Tasks



来源:https://stackoverflow.com/questions/3745917/how-to-write-a-python-program-that-automatically-starts-when-windows-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!