| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Windows | NO | NO | NO | All |
This command closes all but the top window instance. As window instances are not automatically closed in Omnis, you can use this command to close all window instances except the top window instance. The Close other windows command does not close private instances which do not belong to the current task.
# Close all other windows
Iflen(sys(51))## more than 1 window openClose other windows
End If