Re: XP SP2 command line trouble - update

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



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.

That's good to know. I've seen the %1 both ways and
wondered how that affected things.

But that wouldn't be connected with the problem that's
showing up, would it? Explorer is sending the command line
fine, which implies that the Registry settings are OK, but the
command line itself, on at least this particular XP SP2
machine, includes quotes. I had the utility write the
command line it received to disk, and also wrote it as
a string of ascii numbers. On WinXP SP2 - where the
utility fails to find the file pointed to in the command line -
my log file shows a string like "C:\file.pdf"

The ascii string reads like: 34-67-58 ...etc. There
are actually quotes in the command string itself.

On Win98 the quotes are not there. I haven't tested
the logging on XP SP1, but I have tested the utility
itself with no problems.


.



Relevant Pages

  • Re: runas: need help with those quotes
    ... matters, both paths have spaces, so they are enclosed in quotes. ... 'This command echos the the strCmd to the screen. ... Quotes embedded in a quoted string should be doubled. ...
    (microsoft.public.scripting.vbscript)
  • Re: runas: need help with those quotes
    ... matters, both paths have spaces, so they are enclosed in quotes. ... 'This command echos the the strCmd to the screen. ... Quotes embedded in a quoted string should be doubled. ...
    (microsoft.public.scripting.vbscript)
  • Parsing a bash string?
    ... For my application, which is a wrapper over bash, ... I have to be able to parse a command line typed by the user. ... I.e., I need a function that, when given a typical bash command string like ... I have to remove the quotes (notice the last ...
    (comp.unix.shell)
  • Re: XP SP2 command line trouble - update
    ... If the OS is wrapping the path in quotes ... de-quote the strings, which would just need a function you pass any string ... unquote = replace$, "") ... command line itself, on at least this particular XP SP2 ...
    (microsoft.public.vb.general.discussion)
  • Re: Execute command line switches from vbs
    ... Command Line For Access Macro ... My goal is to reduce numerous separate scheduled tasks to only several VBS ... VBS literal string. ... doubling up the quotes that are to be part of intended ...
    (microsoft.public.scripting.vbscript)