there way read cmd output using c# console application mentioned , asking thread: how parse command line output c#?
however, need vice-versa of former question, want create console application (whether in c# or in vb - doesn't matter) return an output readable external program cmd.exe.
i wish simple as:
class program { static datatable main(string[] args) { // stuff return mydatatable; //(or string) } }
but no luck.
as comments state reading contents of console window confusing. why don't redirect console output file (and console if wish) , solution becomes trivial.
this article describes how can use custom trace/console listener/logger extending textwriter , setting console.out stream.
Comments
Post a Comment