home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
System
/
T.H.E.
/
REXX
/
CloseSubWin.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-11-06
|
409b
|
21 lines
/*
$VER: CloseSubWindows.rexx 1.1 (6.11.99) Copyright (c) Nils Görs.
Closes all sub windows opened from the active window.
*/
options results
address WORKBENCH
GETATTR OBJECT WINDOWS.ACTIVE
activeWin = result
GETATTR WINDOWS STEM WINDOW
do i = 0 to WINDOW.count-1
IF WINDOW.i ~= "root" THEN
IF WINDOW.i ~= activeWin THEN
IF ABBREV(WINDOW.i,activeWin) THEN WINDOW '"'||WINDOW.i||'"' CLOSE
END