| Author |
Re: VB6 file name parameter
|
|
| Steven Burn 2004-03-30, 8:31 pm |
| Private Sub Form_Initialize()
msgbox Command$
End Sub
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Paul Cowper <anonymous@discussions.microsoft.com> wrote in message
news:E58E3434-7A32-4AD2-B435-BC49A3A074C3@microsoft.com...
> Is it possible to pass a filename as a parameter to a VB6 app? I would
like to have 'Open with MyVB6App' on a context menu when a file is
right-clicked but I can't see how to deal with command line params in a VB6
app.
>
> TIA
> Paul
| |
| Rick Rothstein 2004-03-30, 8:31 pm |
| > Is it possible to pass a filename as a parameter to a VB6 app? I would
like to have 'Open with MyVB6App' on a context menu when a file is
right-clicked but I can't see how to deal with command line params in a VB6
app.
Look up the Command function in the help files.
Rick - MVP
| |
| Karl E. Peterson 2004-03-31, 1:30 pm |
| Paul Cowper <anonymous@discussions.microsoft.com> wrote:
> Is it possible to pass a filename as a parameter to a VB6 app? I would like
> to have 'Open with MyVB6App' on a context menu when a file is right-clicked
> but I can't see how to deal with command line params in a VB6 app.
That's really two separate issues. The first, and easiest, is interpreting the
command line. The second, is associating a particular filetype with your
application. Which is it you're having trouble with?
--
[Microsoft Basic: 1976-2001, RIP]
| |
| Paul Cowper 2004-03-31, 6:30 pm |
|
----- Karl E. Peterson wrote: -----
Paul Cowper <anonymous@discussions.microsoft.com> wrote:
> Is it possible to pass a filename as a parameter to a VB6 app? I would like
> to have 'Open with MyVB6App' on a context menu when a file is right-clicked
> but I can't see how to deal with command line params in a VB6 app.
That's really two separate issues. The first, and easiest, is interpreting the
command line. The second, is associating a particular filetype with your
application. Which is it you're having trouble with?
--
[Microsoft Basic: 1976-2001, RIP]
Accessing the command line parameters.
| |
| Bob Butler 2004-03-31, 6:30 pm |
| "Paul Cowper" <anonymous@discussions.microsoft.com> wrote in message
news:8C99D135-4EFE-422F-AC5D-F35AD0270286@microsoft.com
<cut>
> Accessing the command line parameters.
see the Command$ function
--
Reply to the group so all can participate
VB.Net... just say "No"
| |
| Paul Cowper 2004-03-31, 7:31 pm |
| That did it. Thanks.
| |
| Paul Cowper 2004-03-31, 7:31 pm |
|
----- Rick Rothstein wrote: -----
> Is it possible to pass a filename as a parameter to a VB6 app? I would
like to have 'Open with MyVB6App' on a context menu when a file is
right-clicked but I can't see how to deal with command line params in a VB6
app.
Look up the Command function in the help files.
Rick - MVP
That's great. Thanks.
Paul
|
|
|
|