VB6 has Command() function that returns command line arguments passed to an executable.
For sample code just search forum - there are many out there.