Re: XP SP2 command line trouble - update
- From: sweevil <sweevil@xxxxxxxxx>
- Date: Tue, 18 Sep 2007 09:49:24 -0700
On Sep 18, 8:40 am, "mayayana" <mayaXXyan...@xxxxxxxxxxxxxxxx> wrote:
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.
Maybe Explorer is wrapping it in a string to prevent buffer overflow?
.
- 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: Query-based update failed because the row to update could not be found
- Next by Date: To the Group
- Previous by thread: XP SP2 command line trouble - update
- Next by thread: Re: XP SP2 command line trouble - update
- Index(es):
Relevant Pages
|