How To Redirect Standard I/O of a Console App Using Batch File (150767)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q150767 SUMMARY
A 32-bit Visual Basic application launches another Win32 process by using
either the Visual Basic Shell command or the CreateProcess Win32 API. If
the new process is a console application that reads its input from the
standard input (STDIN) or writes its results to the standard output
(STDOUT), you can redirect its input and output from the parent Visual
Basic application. This article describes how to use a batch file (.BAT) to
redirect the standard input and output of the spawned console process. To
build the sample code in this article, you need the 32-bit edition of
Visual Basic and any development tools, such as Visual C++ version 2.0 and
above, that build Win32 console applications.
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kb32bitOnly kbhowto KB150767 |
---|
|