I want to use C# to open .exe file and print it in .txt?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 1
Reputation: hepoo911 is an unknown quantity at this point 
Solved Threads: 0
hepoo911 hepoo911 is offline Offline
Newbie Poster

I want to use C# to open .exe file and print it in .txt?

 
0
  #1
Jun 18th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: I want to use C# to open .exe file and print it in .txt?

 
0
  #2
Jun 18th, 2008
how far u do this?
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 7
Reputation: kathirvelmm is an unknown quantity at this point 
Solved Threads: 0
kathirvelmm kathirvelmm is offline Offline
Newbie Poster

Re: I want to use C# to open .exe file and print it in .txt?

 
0
  #3
Jun 19th, 2008
Originally Posted by hepoo911 View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC