简体   繁体   English

从命令行运行时如何防止 GUI (VB6) 程序返回控制权?

[英]How to prevent GUI (VB6) program from returning control when run from a command line?

There is a VB6 application.有一个 VB6 应用程序。 It can be run with command line parameters to create some report in a text file.它可以使用命令行参数运行以在文本文件中创建一些报告。

The problem is that when started from a batch file, application returns control immediately, so the following commands start executing.问题是当从批处理文件启动时,应用程序会立即返回控制权,因此以下命令开始执行。 I need these following commands to wait until the VB6 app finishes its work.我需要以下这些命令来等待 VB6 应用程序完成其工作。

How to achieve that?如何做到这一点?

Start命令有一个等待开关,它完全符合您的要求。

c:\start /w notepad

您可以将 VB6 程序重写为控制台应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM