Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH Run command with space in file path
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00356898
Message ID:
00356920
Views:
14
>Guess what I did two seconds after posting the message? Added quotes - loShell.Run('"'+lcFileName+'"', 1, .T.) - works perfect.

That's what I thought. It's the "Ye Olde Spaces in Path Problem Solution".:-)

>>Nigel,
>>
>>I think it may be that you have to add quotes. (i.e. lcFileName = CHR(34) + lcfilename + CHR(34)). It's a WAG 'cause I haven't tried it.:-)
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform