[COLOR=#008080][FONT=Courier New]** CmdLineParam$[0] holds number of passed cmd line parameters[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New]n=[/FONT][/COLOR][COLOR=#0000ff][FONT=Courier New]VAL[/FONT][/COLOR][COLOR=#000000][FONT=Courier New](CmdLineParam$[[/FONT][/COLOR][COLOR=#ff0000][FONT=Courier New]0[/FONT][/COLOR][COLOR=#000000][FONT=Courier New]])[/FONT][/COLOR]
[COLOR=#008080][FONT=Courier New]** if number of parameters is > 0 then...[/FONT][/COLOR]
[COLOR=#0000ff][FONT=Courier New]If[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] (n>[/FONT][/COLOR][COLOR=#ff0000][FONT=Courier New]0[/FONT][/COLOR][COLOR=#000000][FONT=Courier New]) [/FONT][/COLOR][COLOR=#0000ff][FONT=Courier New]Then[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New][/FONT][/COLOR][COLOR=#008080][FONT=Courier New]** This loop simply enumerate the passed parameters[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New][/FONT][/COLOR][COLOR=#0000ff][FONT=Courier New]For[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] i=[/FONT][/COLOR][COLOR=#ff0000][FONT=Courier New]1[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] [/FONT][/COLOR][COLOR=#0000ff][FONT=Courier New]To[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] n[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New] [/FONT][/COLOR][COLOR=#008080][FONT=Courier New]** ..and show the obtained parameters in message box (or do anything you want)[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New] [/FONT][/COLOR][COLOR=#000066][FONT=Courier New][B]Message[/B][/FONT][/COLOR][COLOR=#000000][FONT=Courier New]("Command line parameter:","CmdLineParam$[i]")[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New][/FONT][/COLOR][COLOR=#0000ff][FONT=Courier New]Next[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] i[/FONT][/COLOR]