Been working on a function which will get the text of any command passed into it. Was wondering if anyone would like to try make a better way of doing it?
A requirement is that the command called is not allowed to show a console, nor is it allowed to print to the running app's console if it's a console app.
EDIT: It must, however, work correctly when compiled for unicode or multibyte support.
Multithreading need not be supported.
Here's my function:
If you're interested in the class to which it belongs:
Edited by Billy O'Neal, 30 November 2008 - 09:58 PM.