ralph
4/13/2012 2:55:00 AM
On Thu, 12 Apr 2012 15:36:09 -0700, Karl E. Peterson <karl@exmvps.org>
wrote:
>"Nevermind..." Classic case of posting it causing deeper refection.
>OF course that function fails, because quote chars are illegal within
>filenames. D'oh!
>
....
>>
>> If you pass a string that includes the surrounding quotes, essentially:
>>
>> "C:\Program Files\Common Files\Microsoft Shared\OFFICE14\MSOXMLED.EXE"
>>
>> Still mumbling about the pervassive ramifications...
Yeah, we just had a thread a while back on that. Double quotes are
only needed for shell parsers that use a space as a delimiter for
commands and parameters.
Unfortunately since a program can never be quite sure how it is
launched, or the means by which it is delivered, any 'strings'
received from the outside world need to be tested for leading and
trailing quotes.
-ralph
[DIFF/CVS sources can also be a problem.]