I am using Visual Basic 4.0 to create executable CGI scripts, which despite the dated technology, works well. In order to streamline the number of executable files that are neccessary, it seems like a good idea to pass command line arguments to each program.

As an example, I collect data, and then proceed from compiled CGI Data1.exe to Data2.exe.

Instead, it seems like a great idea to call a Data.exe, followed by some parameter, hence: Data.exe 1, or Data.exe 2.

Using VB4.0, how do I pass parameters in this way? Does anyone know?

Thanks!

Shaun