如何在没有终端的情况下在Windows中运行py2exe程序?

发布于 2024-08-23 04:51:40 字数 123 浏览 9 评论 0 原文

有人可以向我解释一下如何在 Windows 上没有终端的情况下运行我的 py2exe 程序(一个控制台程序)吗?

我正在尝试制作一个重新调整窗口大小的程序,它应该从窗口启动,所以我希望它隐藏起来但仍在运行......

Could someone explain to me how can I run my py2exe program, a console program, without the terminal on Windows?

I'm trying to make a program that re-sizes windows and it supposed to start with windows, so I want it hide out but still running...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

面犯桃花 2024-08-30 04:51:41

听起来您想要的是将脚本作为 Windows 服务而不是 Windows 程序运行。像本教程这样的内容可能会有所帮助:

http:// islascruz.org/html/index.php?gadget=StaticPage&action=Page&id=6

Sounds like what you want is for your script to run as a Windows Service instead of a Windows program. Something like this tutorial might be helpful:

http://islascruz.org/html/index.php?gadget=StaticPage&action=Page&id=6

讽刺将军 2024-08-30 04:51:40

使用 setup() 函数,如下所示:

setup(windows=['myfile.py'])

请参阅 setup() 的选项列表

Use the setup() function like this:

setup(windows=['myfile.py'])

See the list of options for setup().

蓝眼泪 2024-08-30 04:51:40

不太明白您的要求,但您可以尝试start /MIN。在命令行中输入 start /? 以查看其帮助页面。

Not really understand your requirement, but you can try start /MIN. type start /? on the command line to see its help page.

皓月长歌 2024-08-30 04:51:40

您是否会考虑将其编译为 EXE(使用 py2exe 或类似文件)并将其添加到启动列表中程序?

Would you consider compiling it into an EXE (using py2exe or some such) and adding it to your list of startup programs?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文