Message
From
22/03/2010 17:14:26
 
General information
Fórum:
Visual FoxPro
Category:
Título:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
ID da thread:
01456028
ID da mensagem:
01456284
Views:
27
It was that... thank you Sergey


>It would happen for folders/file names with spaces. You'll have to enclose the file name in double quotes to fix it
>
>oShell 	= CREATEOBJECT("WScript.Shell")
>lcFileName = GETFILE("pdf")
>* Enclouse into double quotes to avoid problem with spaces in file name
>lcFileName = ["] + lcFileName + ["]
>oShell.Run(lcFileName,1)
>
>
>>Yes I retrieve the filename by Getfile() and the file can be open without problem outside VFP
>>It seems to give me no problem with Jpg files while I got into problems when trying to open Xls or Pdf files
>>
>>
Previous
Next
Responder
Mapa
View