home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Resources
/
System
/
BoingBag1
/
Contributions
/
Workbench
/
ARexx
/
CloseSubWin.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-12-20
|
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