Re: XP SP2 command line trouble - update
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Tue, 18 Sep 2007 20:41:15 -0400
if pathtoexe has spaces, then it should be quoted when adding to the
registry. Similarly, the %1 should be quoted ("%1") in case paths or
filenames containing spaces are passed.
--
Randy Birch
MS MVP, Visual Basic
http://vbnet.mvps.org/
Please respond to the newsgroups so all can benefit.
"mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx> wrote in message
news:OPuY5mf%23HHA.5160@xxxxxxxxxxxxxxxxxxxxxxx
I posted on 8-4 about a problem with
command lines on XP. That was so long ago that
I'm posting new here with an update that might
be of interest.
The problem:
I had written a wrapperr utility for XPDF that adds
a context menu "Convert to Text" for PDF files. I
added the standard Registry settings, with a Command
key default setting of: PathofEXE %1
That all worked fine in tests on Win98, ME and XP SP1.
And I've never received any email complaining about
problems with the utility. But in XP SP2 the utility failed
to find the file sent by Explorer in $Command. The problem
turned out to be quite strange. The command line is in
quotes! By writing a log file of the command line received,
character by character, I found that Explorer on XP SP2
is sending me:
"C:\somefile.pdf" instead of C:\somefile.pdf
I don't know at this point whether it's a problem specific
to the machine, but I don't see how it could be, since
Explorer is handling the menu.
Another oddity that only occurs on SP2: The content menu
appears as it should on most systems, with a menu something
like:
Open
Open With...
Edit
Convert to Text
But on XP SP2 I get something like:
Open
Open With...
Converts PDF file to text
It seems to have substituted the EXE file description
for the menu text, and then it shunted the menu itself onto
the "Open With..." submenu.
.
- Follow-Ups:
- Re: XP SP2 command line trouble - update
- From: mayayana
- Re: XP SP2 command line trouble - update
- References:
- XP SP2 command line trouble - update
- From: mayayana
- XP SP2 command line trouble - update
- Prev by Date: Re: do pop up boxes stop all events?
- Next by Date: Re: install files in one EXE
- Previous by thread: Re: XP SP2 command line trouble - update
- Next by thread: Re: XP SP2 command line trouble - update
- Index(es):
Relevant Pages
|