// Equivalent of WRUN, with extra parameters for starting
// the app maximized or minimized.

declare pfunc WinExec returning integer in dll kernel.exe

#define SW_SHOWMINIMIZED		2
#define SW_SHOWMAXIMIZED		3

//The return value is nonzero if the window was previously visible. It is zero if the window was previously hidden. 

? WinExec('c:\windows\notepad.exe', SW_SHOWMAXIMIZED)

wait