I want to run a dos application, how can i get the text of the dos app?
CAn anyone show me the code of running the ms-dos app to getting the text of that console windows...
Printable View
I want to run a dos application, how can i get the text of the dos app?
CAn anyone show me the code of running the ms-dos app to getting the text of that console windows...
You can pipe the data to a text file then read it back, thats how i do it at least. When you shell the dos command add a " > C:\whatever.txt" and anything that is outputed by the command will be piped to that file. Once the command has completed you can just open the text file and read it back into a textbox or whatever else you want.
Search this site, I think I remember seeing a really good tutorial on using API to get the most out of the DOS Shell.