I have some utilities that utilise COMO and/or DIVERT.OUT to capture screen output for logging and processing.
I am working on another utility that I want to run these utilities and capturing the screen output they create, for logging purposes.
What I am hoping to find is a mechanism by which I can detect if COMO or DIVERT.OUT are actively redirecting output so I can temporarily direct output somewhere else and then restore it's output redirection.
Has anyone had luck doing this sort of output gymnastics just using native functions, or any had-crafted functions for that matter?
------------------------------
Gregor Scott
Software Architect
Pentana Solutions Pty Ltd
Mount Waverley VIC AU
------------------------------
