I never use C# .net 2005, How i can open .exe file that actualy run in DOS and get the data and print it on .txt file. the way is I write the names of .exe file and I press the button and I can see everything one time.

Recommended Answers

All 2 Replies

how far u do this?

I never use C# .net 2005, How i can open .exe file that actualy run in DOS and get the data and print it on .txt file. the way is I write the names of .exe file and I press the button and I can see everything one time.

write a batch file to execute the exe.
use System.diagnostics

create a new process pr
start the process to execute the batch file
write the out put to a string and print it where ever you want what ever the format you choose

thats it you got solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.