问题
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