You need to retrieve the command-line parameters that are used to execute your application.
Create a Main subroutine that accepts an array of strings. This array will be automatically populated with all command-line arguments.
Command-line arguments are most commonly used in Console applications. In fact, many Console utilities require command-line parameters to supply a minimum amount of information. Command-line arguments are often used in document-based Windows-based applications to quickly open specific files. For example, the command winword.exe mydoc.doc could be used to launch Microsoft Word and open the mydoc.doc file in one operation.
To retrieve command-line arguments in a Windows ...