Home > Archive > Visual Basic > May 2004 > Re: Shortcut parameters
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Shortcut parameters
|
|
| Bob O`Bob 2004-05-30, 3:30 pm |
| Garry Martin wrote:
> I would like to know if you can pass a number from a shortcut to my program
> created in VB6.
> I know how to use the command$ but this only seems to work if my exe is
> associated with a file type.
>
> ie I double click a file with extension .scl and the command line passes the
> path to my app.
>
> Is there a way to create a shortcut to my app and then add a parrameter
> ie ...\Myapp.exe 0 or ...\Myapp.exe 1 or ...\Myapp.exe 2
>
> what I would like to do is pass the number as the command$ and then my app
> would take care of what it needs to do.
> I am trying not to associated my app with an extension, just use a shortcut.
It's not so much a VB question as a shortcut question.
Create yourself a shortcut, then look into its properties.
You'll find the command line - I think it's labeled "Target",
and there you can edit in some parameters.
Bob
| |
| Garry Martin 2004-05-30, 3:30 pm |
| Hi Bob
I have already tried that but it does not seem to work.
In the Target I add the path to my app enclosed in inverted comma's.
I then add a Zero after that as a command line parrameter but nothing
happens.
does it have to be done a special way.
Garry
"Bob O`Bob" <filterbob@yahoogroups.com> wrote in message
news:40BA24B9.73F6@yahoogroups.com...
> Garry Martin wrote:
>
program[color=darkred]
the[color=darkred]
app[color=darkred]
shortcut.[color=darkred]
>
>
> It's not so much a VB question as a shortcut question.
>
> Create yourself a shortcut, then look into its properties.
> You'll find the command line - I think it's labeled "Target",
> and there you can edit in some parameters.
>
>
>
> Bob
| |
| Garry Martin 2004-05-30, 3:30 pm |
| Hi Bob
I found it was my own fault.The command line was being read but my app did
not process it correctly.
Garry
"Garry Martin" <garry.martin@zen.co.uk> wrote in message
news:40ba2729$0$4574$db0fefd9@news.zen.co.uk...
> Hi Bob
>
> I have already tried that but it does not seem to work.
>
> In the Target I add the path to my app enclosed in inverted comma's.
> I then add a Zero after that as a command line parrameter but nothing
> happens.
>
> does it have to be done a special way.
>
> Garry
>
> "Bob O`Bob" <filterbob@yahoogroups.com> wrote in message
> news:40BA24B9.73F6@yahoogroups.com...
> program
is[color=darkred]
passes[color=darkred]
> the
parrameter[color=darkred]
> app
> shortcut.
>
>
|
|
|
|
|