如何编写一个随windows启动自动启动的python程序?
我正在使用 python 2.6 和 pyqt4 编写一个程序。我希望这个程序在 Windows 启动时自动启动(类似于 uTorrent 客户端)。我该如何进行这项工作?我使用的是Windows 7。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您只需在 Windows 开始菜单中的“Startup”文件夹中放置一个快捷方式即可。
You can just place a shortcut in the "Startup" folder, in the windows start menu.
您可以将您的python脚本编译成exe并将其添加到您的启动项中:开始>节目>配件>系统工具>计划任务
You can compile your python script into an exe and add it to your startup items: Start > Programs > Accessories > System Tools > Scheduled Tasks