Re: XP SP2 command line trouble - update



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.



.



Relevant Pages

  • Re: XP SP2 command line trouble - update
    ... with a Command ... character by character, I found that Explorer on XP SP2 ...
    (microsoft.public.vb.general.discussion)
  • XP SP2 command line trouble - update
    ... with a Command ... character by character, I found that Explorer on XP SP2 ...
    (microsoft.public.vb.general.discussion)
  • Cannot open .doc documents with double or right-click
    ... Word 2002-XP - Win XP SP2 ... What should the command in registry look like for word documents? ... TIA!! ...
    (microsoft.public.word.newusers)
  • Re: "Command Window Here" question
    ... Uninstall Command Window Here and get this.. ... It adds two registry entries... ... or 16-bit Windows environments. ... > Window Here" on the explorer menu is selected. ...
    (microsoft.public.windowsxp.basics)
  • Re: Great SWT Program
    ... Invisible extra things to backspace away are going to trip ... This indicates that Windows is not seeing the same input ... drag and drop oddities in Explorer indicate a similar problem; ... command prompt instead of a different task; ...
    (comp.lang.java.programmer)