Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adobe won't open a file with a blank in the filename
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01328393
Message ID:
01328398
Views:
10
>Hi all,
>I'm trying to open Adobe like this. I need it to wait until I close the PDF manually so that it can return to my VFP on next line.
>oShell = createobject("WScript.shell")
>oShell.run ('"c:\program files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" &XX',0,.t.)
>
>Where XX = a valid path + a PDF filename (F:\scans\ABC NETWORK.PDF)
>This works fine if there are no spaces in the file (XX), but I need to work either way.
>What am I missing?? please.
>thanks.
oShell.run ('"c:\program files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" "'+ XX + '"',0,.t.)
not tested
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform