Hi Frank,
You can use CreateProcess or Shell Execute, as you have done. The latter is easier to setup. I have a very simple example with header info here: examples/system/ShellExecute.o2bas
'http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153(v=vs.85).aspx
/*
HINSTANCE ShellExecute(
__in_opt HWND hwnd,
__in_opt LPCTSTR lpOperation,
__in LPCTSTR lpFile,
__in_opt LPCTSTR lpParameters,
__in_opt LPCTSTR lpDirectory,
__in INT nShowCmd
);
operation:
explore
find
open
print
NULL
ShowCmd:
SW_HIDE (0)
SW_MAXIMIZE (3)
SW_MINIMIZE (6)
SW_RESTORE (9)
SW_SHOW (5)
SW_SHOWDEFAULT (10)
SW_SHOWMAXIMIZED (3)
SW_SHOWMINIMIZED (2)
SW_SHOWMINNOACTIVE (7)
SW_SHOWNA (8)
SW_SHOWNOACTIVATE (4)
SW_SHOWNORMAL (1)
*/
! ShellExecute alias "ShellExecuteA" lib "Shell32.dll" _
(sys Hwnd, string operation,file,parameters,directory,sys ShowCmd) as sys
ShellExecute null,"open","..\..\gxo2.exe","helo.o2bas",null,0