|
-
Jan 24th, 2005, 04:49 AM
#1
Thread Starter
New Member
Command Line Parms with VB
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
Last edited by LanceSummers; Feb 10th, 2005 at 04:20 AM.
Reason: Resolved
-
Jan 24th, 2005, 05:03 AM
#2
KING BODWAD XXI
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 
VB Code:
Private Sub Form_load
msgbox command$
end sub
-
Jan 25th, 2005, 09:11 AM
#3
Thread Starter
New Member
Re: Command Line Parms with VB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|