Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Common Dialog - is there a way to return Path and lis
Message
From
07/12/1999 14:43:33
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00299346
Message ID:
00299947
Views:
27
>George,
>
>I think this is a classical example of my stupidity :) Very simple - and works great!
>

Not stupidity; at worst, ignorance. Ignorance is correctable - stupidity seems to be an eternal condition.

Now for the Why - many things need to be told not to use characters embedded in LFNs as separators or terminators in their internal processing; the convention used is to encapulate the string in double quotes (") to tell the parser to treat the entire string as a path. You can see this in use if you look at paths in shortcuts that have an embedded space.

This is not universal, and some parsers aren't very swift - they get confused if you quote-encapsulate something that doesn't need quote encapsulation.

You can see this at work if you macro-expand paths for VFP command lines - the use of name resolution rather than macro expansion is a frequent workaround.

>>
>>This works! Thanks a lot. Now I'll do these changes in Archive program.
>>
>>>>If I pass 'c:\test\*.*', 'c:\test\ggg.zip', it works.
>>>>If I pass 'c:\My Documents\*.*', 'c:\My Documents\ggg.zip', it failes.
>>>>
>>>
>>>You may need to further quote encapsulate LFNs that contain a space - try using
>>>'"c:\My Documents\*.*"', '"c:\My Documents\ggg.zip"'
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform