I have 2 programs. The first is a Visual Basic program that accepts input data and creates a file. The second is a cobol program that when executed reads the file created in visual basic and creates a file of its own. I then have a command in visual basic to read the file created by cobol and display the data on the screen.
How can I call the cobol executable or dll from the visual basic program so that the two programs can run by executing one command instead of running the processes separately?