home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / T.H.E. / REXX / CloseExceptActiveWin.rexx < prev    next >
OS/2 REXX Batch file  |  1999-11-06  |  364b  |  20 lines

  1. /*
  2.    $VER: CloseExceptActiveWin.rexx 1.1 (28.8.99) Copyright (c) Nils Görs.
  3.  
  4.   closes all windows except the active one.
  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 WINDOW '"'||WINDOW.i||'"' CLOSE
  19. END
  20.