home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / utilities / t.h.e. / rexx / closesubwin.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1999-11-06  |  409 b   |  21 lines

  1. /*
  2.    $VER: CloseSubWindows.rexx 1.1 (6.11.99) Copyright (c) Nils Görs.
  3.  
  4.   Closes all sub windows opened from the active window.
  5. */
  6.  
  7. options results
  8.  
  9. address WORKBENCH
  10.  
  11. GETATTR OBJECT WINDOWS.ACTIVE
  12. activeWin = result
  13.  
  14. GETATTR WINDOWS STEM WINDOW
  15.  
  16. do i = 0 to WINDOW.count-1
  17.   IF WINDOW.i ~= "root" THEN
  18.     IF WINDOW.i ~= activeWin THEN 
  19.         IF ABBREV(WINDOW.i,activeWin) THEN WINDOW '"'||WINDOW.i||'"' CLOSE
  20. END
  21.