Re: XP SP2 command line trouble - update

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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?

.



Relevant Pages

  • 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)
  • Re: XP SP2 command line trouble - update
    ... added the standard Registry settings, with a Command ... I found that Explorer on XP SP2 ...
    (microsoft.public.vb.general.discussion)
  • Re: Blank message bodies ... more
    ... I followed both the suggested methods, Command ... Prompt and Explorer Address Bar, ... Cleanup, to clear the TIF. ... What the View of the pseudo folder is showing you is a combination ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: 3 icons missing from startup
    ... [[Allows you to remove the Run command from the Start menu, ... Explorer, and Task Manager. ... Run dialog box by pressing the Application key (the key with the Windows ... Search does not appear in the context menu when you right-click an icon ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Automatize copy in Sharepoint
    ... the COPY command to copy files to and from the ... From Windows Explorer, click File -> Map Network Drive. ... ".cmd" to the Link that creates of the directory of the server but does ... Somebody knows alternatives to automate a publication? ...
    (microsoft.public.sharepoint.portalserver)