Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a file from Fox
Message
 
 
To
26/05/2003 21:42:42
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00792916
Message ID:
00792922
Views:
25
You can use WSH http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthRun.asp
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(lcMyFile)
or ShellExecute API #12636.


>A user wants to send an email form a Foxpro application. I display what will be sent in a Foxpro form before sending. One textbox contains the name (full path) of an attachment file. I would like the user to be able to double-click on the attachment and it would open in it's native application for viewing before sending, but, I con't get this to work. The attachment could be of any file type. My test files are a Word document, an Excel spreadsheet, and an Adove Acrobat file (PDF). None will open for viewing.
>
>I have tried:
> run This.Value
>and run /N This.Value
>
>No luck ... Any ideas?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform