>Thanks, that works. Could you help me to know how to open a .TXT file in a similar fashion?
Another way if you do not want to use MS WOrd t open a simple TXT file, is to use the Windows Script Host. MSWord may be a little heavy for such a sumple job or may not be installed at your client's. WSH could be installed or else it is easy to install (and free).
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe myfile.txt",SW_SHOW_NORMAL,.T.)