views:

38

answers:

2

There is a VB6 application. 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.

How to achieve that?

+3  A: 

The Start command has a wait switch which does exactly what you want.

c:\start /w notepad

tafa
A: 

You could rewrite the VB6 program as a console application.

Bob Riemersma