Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 working with processes

Author  Topic 

olay80
Yak Posting Veteran

62 Posts

Posted - 2006-01-02 : 16:40:42
hey guys,

i have a process that opens a console application and writes in it, i need to retrieve what's been written in that console by the process that is opening it (in a string).

Regards,
Oliver

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-01-02 : 17:14:53
so it can open any app??
i smell key hooks here...

Go with the flow & have fun! Else fight the flow
Go to Top of Page

olay80
Yak Posting Veteran

62 Posts

Posted - 2006-01-02 : 17:20:54
no, not necessarily any application only the console application that displays a certain text for ex:
process started at 12:30
processing...
process ended at 11:30


i need to retrieve this text in bold from the console application.

Oliver
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-01-02 : 17:26:38
if you want to get the text when the console app finishes, i'd write that text to a file and then read it.
if not then you need to write your console app so that it returns a text in a function that your process can read from.

Go with the flow & have fun! Else fight the flow
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-01-03 : 14:29:15
Text file or database is the way to go here.
Trying to read that text though ASP.net is going to be very difficult and troublesome, if it's even possible.

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>
Go to Top of Page
   

- Advertisement -