WindowLess WinForm 或控制台应用程序启动 .bat 文件?
我想通过调度程序启动 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这听起来像是 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.