Thanxx a lot Mike
i was just looking for a way to execute a notepad to open a txt file. i found the way as below
' RunNotepad.o2bas
' Runs a notepad to display a text file
$ filename "RunNotepad.exe"
uses RTL64
%SW_SHOWNORMAL = 1
! ShellExecute alias "ShellExecuteA" lib "Shell32.dll" _
(sys Hwnd, string operation,file,parameters,directory,sys ShowCmd) as sys
' Display text file using notepad
Long lRes
lRes = ShellExecute(0, "", "Notepad.exe", "crepdata.txt" , "", %SW_SHOWNORMAL)