You can use WSH
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthRun.aspoShell = 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--