Hi - that almost works but msg cannot find file (is correct filename and works with shell execute) code is below - I pass the file name to the routine. I have included the shellexecute code that works but is full screen.
LPARAMETERS showurl
LOCAL lnsuccess
STORE 0 TO lnsuccess
o = Createobject("internetexplorer.application")
o.navigate2("File://<<&showurl>>")
o.Height = 200
o.Width = 200
o.Visible = .T.
*!* IF !EMPTY(showurl)
*!* && Redeclare in case ShellExecute was cleared by another program
*!* DECLARE INTEGER ShellExecute IN shell32.dll ;
*!* INTEGER hndWin, ;
*!* STRING cAction, ;
*!* STRING cFileName, ;
*!* STRING cParams, ;
*!* STRING cDir, ;
*!* INTEGER nShowWin
*!* lnsuccess= ShellExecute(0,"open",showurl,"","",1)
*!* IF lnsuccess>31
*!* _screen.WindowState= 1
*!* endif
*!* ENDIF
*!* endproc