WindowLess WinForm 或控制台应用程序启动 .bat 文件?

发布于 2024-08-11 08:02:59 字数 112 浏览 1 评论 0原文

我想通过调度程序启动 .bat 文件。 .bat 文件调用第三方命令行工具。通过控制台应用程序与无窗口 winform 应用程序执行此操作有什么区别?我正在使用.NET。我更喜欢该应用程序不显示 DOS 窗口。

I want to launch a .bat file through a scheduler. The .bat file calls a third party command line tool. What's the difference between doing this through a console app vs a windowless winform application? I am using .NET. I prefer the app not show a DOS window.

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

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

发布评论

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

评论(1

林空鹿饮溪 2024-08-18 08:02:59

这听起来像是 Windows 计划任务的工作。我假设您正在使用 ProcessStart 类从 .NET 启动程序?如果是这样,那么我认为唯一的区别是在控制台应用程序中加载 WinForm 程序集与不加载 WinForm 程序集所涉及的开销。

This sounds like a job for a windows scheduled task. I assume that you're using the ProcessStart classes to launch the program from .NET? If so then I think the only difference would be the overhead involved in the WinForm assemblies being loaded vs not loading in the console app.

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