Command Line Parms with VB
:wave: How do I create a VB main sub that will recognize calling parms?
Example, I create an EXE type that I associate with a VB program and when I click on it, the VB program opens.
Though it opens, I still need to be able to get the name of the file that caused it to open.
Any suggestions?
Thanks, Lance
Re: Command Line Parms with VB
in the start function e.g sub main we get a string called Command$. We use this value to work out passed parameters such as the filename :wave:
VB Code:
Private Sub Form_load
msgbox command$
end sub
Re: Command Line Parms with VB