Home All Groups Group Topic Archive Search About
Author
23 Aug 2010 8:53 PM
BeeJ
My VB6 app looks at the command line when it starts.
I want to gather a list of images that the user selected then list them
in my app.
So far this is what I am seeing on my XP PC ...
Note: these all have spaces in the path and\or name so I get double
quoted arguments.
If I select several image files in windows explorer and then

Select Open With
  Only the first path\filename shows in Command$
  So this method seems not to be any good.
  Is his the expected result?

Select Send To
  I see all path\filenames selected in Command$
  The command parser I have treats the first as a path\file and gives
me  the correct output, unquoted (spaces intact).  The remaining
arguments are all quoted so I guess I need to work on the parser some
more since these are also path\filenames (just remove the double quotes
I guess) and not /args.
Any clues on this would be good.
Don't want to spend a lot of time fiddling with this part of the code.

So, how do I automatically add a shortcut to the folders for Open With
and/or Send To?  Well maybe not Open With since that seems to not be
much help.
I am setting the association so another file type will load the app and
open this different unique file.  That works OK.
I think I know how to locate the folders but not sure how to create a
shortcut of my app and put it in the folder.

Author
23 Aug 2010 9:03 PM
Kevin Provance
I know I keep saying this, but I think you are ignoring me...on purpose.
What part of using Google don't you understand?

"parse command line" VB -.NET

I see quite a few example

I would also take a look at Karl Petersons site (which should always be your
first stop) as I *know* he has a command line parse there.

Seriously brother, stop being lazy and at least try to find your own code.


Show quoteHide quote
"BeeJ" <nospam@nowhere.com> wrote in message
news:i4un50$6ja$1@speranza.aioe.org...
: My VB6 app looks at the command line when it starts.
: I want to gather a list of images that the user selected then list them
: in my app.
: So far this is what I am seeing on my XP PC ...
: Note: these all have spaces in the path and\or name so I get double
: quoted arguments.
: If I select several image files in windows explorer and then
:
: Select Open With
:  Only the first path\filename shows in Command$
:  So this method seems not to be any good.
:  Is his the expected result?
:
: Select Send To
:  I see all path\filenames selected in Command$
:  The command parser I have treats the first as a path\file and gives
: me  the correct output, unquoted (spaces intact).  The remaining
: arguments are all quoted so I guess I need to work on the parser some
: more since these are also path\filenames (just remove the double quotes
: I guess) and not /args.
: Any clues on this would be good.
: Don't want to spend a lot of time fiddling with this part of the code.
:
: So, how do I automatically add a shortcut to the folders for Open With
: and/or Send To?  Well maybe not Open With since that seems to not be
: much help.
: I am setting the association so another file type will load the app and
: open this different unique file.  That works OK.
: I think I know how to locate the folders but not sure how to create a
: shortcut of my app and put it in the folder.
:
:
Author
23 Aug 2010 9:55 PM
BeeJ
you have too many quoted lines so my newsreader cannot allow a
response.
Author
23 Aug 2010 10:02 PM
Mike Williams
"BeeJ" <nospam@nowhere.com> wrote in message
news:i4uqou$bvc$1@speranza.aioe.org...

> you have too many quoted lines so my newsreader
> cannot allow a response.

Well actually it will be you that has too many quoted lines, not Kevin.

Mike
Author
23 Aug 2010 10:33 PM
BeeJ
Mike Williams expressed precisely :
> "BeeJ" <nospam@nowhere.com> wrote in message
> news:i4uqou$bvc$1@speranza.aioe.org...
>
>> you have too many quoted lines so my newsreader
>> cannot allow a response.
>
> Well actually it will be you that has too many quoted lines, not Kevin.
>
> Mike

all i did was add one line at the end.
Author
23 Aug 2010 10:45 PM
Tom Shelton
BeeJ formulated on Monday :
> Mike Williams expressed precisely :
>> "BeeJ" <nospam@nowhere.com> wrote in message
>> news:i4uqou$bvc$1@speranza.aioe.org...
>>
>>> you have too many quoted lines so my newsreader
>>> cannot allow a response.
>>
>> Well actually it will be you that has too many quoted lines, not Kevin.
>>
>> Mike
>
> all i did was add one line at the end.

Which is why you have too many quoted lines...

--
Tom Shelton
Author
23 Aug 2010 10:12 PM
Kevin Provance
"BeeJ" <nospam@nowhere.com> wrote in message
news:i4uqou$bvc$1@speranza.aioe.org...
: you have too many quoted lines so my newsreader cannot allow a
: response.

The interent male equivelent of "whatever".
Author
1 Sep 2010 12:40 PM
Dee Earley
On 23/08/2010 22:55, BeeJ wrote:
> you have too many quoted lines so my newsreader cannot allow a response.

Yours has none so I don't know the context and cannot reply.. :)

--
Dee Earley (dee.ear***@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)
Author
23 Aug 2010 10:32 PM
BeeJ
you have too many quoted lines so my newsreader cannot allow a
response.
Author
23 Aug 2010 9:52 PM
Abhishek
Author
23 Aug 2010 10:32 PM
BeeJ
on 8/23/2010, Abhishek supposed :
> search here.
> http://www.vbforums.com/forumdisplay.php?f=43
>
> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=62961&lngWId=1
>
>
>
> "BeeJ" <nospam@nowhere.com> wrote in message
> news:i4un50$6ja$1@speranza.aioe.org...

These look interesting.  Found lots of examples of different ways to do
it.  Thanks.