?winexecrun("NETSTAT -a -n > C:\MyPorts.txt") && DOS Window Hidden
FUNCTION winexecrun
PARAMETER cCommand
DECLARE INTEGER WinExec IN win32api ;
STRING command, INTEGER param
retval = WinExec(SYS(2004) + "FOXRUN.PIF /C " + cCommand, 0)
CLEAR DLLS WinExec
RETURN retval