Try this
Extern "win32" Function ShellExecute(hwnd:Int, lpOperation$z,lpFile$z,.. lpParameters$z,lpDirectory$z, nShowCmd:Int)="ShellExecuteA@24" End Extern out:Tstream=WriteStream("c:\result.txt") WriteLine(out,"hello there") CloseStream(out) ShellExecute(0,"open","c:\result.txt","","",3)see here for how to use ShellExecute.