Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
GeneralRe: architecture MVC Pin
MemberDotNetting2-Mar-12 3:41
MemberDotNetting2-Mar-12 3:41 
QuestionDataTable and DataSet? Pin
murali_utr1-Mar-12 17:32
murali_utr1-Mar-12 17:32 
SuggestionRe: DataTable and DataSet? Pin
V.1-Mar-12 20:33
professionalV.1-Mar-12 20:33 
AnswerRe: DataTable and DataSet? Pin
V.1-Mar-12 20:41
professionalV.1-Mar-12 20:41 
AnswerRe: DataTable and DataSet? Pin
satalaj2-Mar-12 5:18
satalaj2-Mar-12 5:18 
AnswerRe: DataTable and DataSet? Pin
Rahul Rajat Singh3-Mar-12 0:43
professionalRahul Rajat Singh3-Mar-12 0:43 
QuestionHow to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen1-Mar-12 12:28
gshen1-Mar-12 12:28 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Dave Kreskowiak1-Mar-12 13:03
mveDave Kreskowiak1-Mar-12 13:03 
It can't. It's an indpendent process that doesn't get any information about how or who launched it.

The only way I know of, and probably going to be the easiest, is to write the launched application to take a command line parameter that is passed to it by the launching app.

Whoops. Just went back and reread the question. Since CMD was the app you launched, it doesn't return until the user types EXIT in the CMD window.

If you want to launch application.exe, you can just launch that instead. If you need results from it, you can redirect the StandardIn and StandardOut streams to handlers in your code so you can interact with it.

GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen1-Mar-12 13:08
gshen1-Mar-12 13:08 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Dave Kreskowiak1-Mar-12 13:43
mveDave Kreskowiak1-Mar-12 13:43 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
PIEBALDconsult1-Mar-12 13:24
mvePIEBALDconsult1-Mar-12 13:24 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:01
gshen2-Mar-12 6:01 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Peter_in_27801-Mar-12 13:43
professionalPeter_in_27801-Mar-12 13:43 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:07
gshen2-Mar-12 6:07 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
Bernhard Hiller1-Mar-12 20:38
Bernhard Hiller1-Mar-12 20:38 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:09
gshen2-Mar-12 6:09 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
BobJanova1-Mar-12 23:28
BobJanova1-Mar-12 23:28 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:11
gshen2-Mar-12 6:11 
AnswerRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
#realJSOP2-Mar-12 4:21
mve#realJSOP2-Mar-12 4:21 
GeneralRe: How to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen2-Mar-12 6:15
gshen2-Mar-12 6:15 
QuestionIQueryable or IEnumerable as returns from Repositories Pin
Ciumac Sergiu1-Mar-12 10:57
Ciumac Sergiu1-Mar-12 10:57 
GeneralRe: IQueryable or IEnumerable as returns from Repositories Pin
PIEBALDconsult1-Mar-12 11:42
mvePIEBALDconsult1-Mar-12 11:42 
QuestionIs it possible to battery status of Digital camera using c# and WIA? Pin
Icarii1-Mar-12 4:15
Icarii1-Mar-12 4:15 
AnswerRe: Is it possible to battery status of Digital camera using c# and WIA? Pin
Dave Kreskowiak1-Mar-12 9:00
mveDave Kreskowiak1-Mar-12 9:00 
GeneralRe: Is it possible to battery status of Digital camera using c# and WIA? Pin
Icarii1-Mar-12 9:49
Icarii1-Mar-12 9:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.