DO FORM linesform NAME Olines LINKED *--Now release it from somewhere else IF UPPER(TYPE('olines'))="O" .AND. Olines<>.NULL. Olines.VISIBLE=.F. Olines.RELEASE() ELSE Olines=.NULL. RELEASE Olines ENDIFOr you can step through all of the current active forms and do something similar to:
* Release myform by stepping through all forms clear LOCAL llFound, loForm llFound=.F. FOR EACH loForm IN _SCREEN.FORMS IF UPPER(ALLTRIM(loForm.CAPTION))='MYFORM' llFound=.T. loform.release() ? 'Found caption myform and closed it' EXIT ENDIF IF UPPER(ALLTRIM(loForm.name))='MYFORM' llFound=.t. loform.release() ? 'Found name of myform and closed it' EXIT ENDIF ENDFOR RETURNFor the dos window you can
run /N <your pkzip command>or create a batch file that contains the pkzip command line in it and following that command line in the batch file add an exit and then run the batch file instead.