>To run Wordpad it can be used next command:
>
>ThisForm.MyShell.Shellexecute("C:\Program Files\Windows NT\Accessories\wordpad.exe")
>Where MyShell is object _shellexecute of _environ.vcx
>
>How run and open file in Wordpad?
I don't know the class. With directly using the ShellExecute API instead :
declare long ShellExecute in "shell32.dll" ;
long hwnd, string lpszOp, ;
string lpszFile, string lpszParams, ;
string lpszDir, long nShowCmd
lcFileToOpen = '"C:\My Folder\MyFile.txt"'
ShellExecute(0,'Open',;
'"C:\Program Files\Windows NT\Accessories\wordpad.exe"',;
m.lcFileToOpen,'',1)
Cetin