Click here to Skip to main content
15,921,062 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to detect when an application is about to exit Pin
Luc Pattyn22-Aug-09 22:28
sitebuilderLuc Pattyn22-Aug-09 22:28 
QuestionAllowPartiallyTrustedCallers not working on Shared Assembly Pin
Tristan Rhodes21-Aug-09 1:43
Tristan Rhodes21-Aug-09 1:43 
AnswerRe: AllowPartiallyTrustedCallers not working on Shared Assembly Pin
Dave Kreskowiak21-Aug-09 5:15
mveDave Kreskowiak21-Aug-09 5:15 
GeneralRe: AllowPartiallyTrustedCallers not working on Shared Assembly Pin
Tristan Rhodes23-Aug-09 22:56
Tristan Rhodes23-Aug-09 22:56 
RantThrow it like you mean it... Pin
Adriaan Davel21-Aug-09 1:32
Adriaan Davel21-Aug-09 1:32 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak21-Aug-09 2:19
mveDave Kreskowiak21-Aug-09 2:19 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel21-Aug-09 2:38
Adriaan Davel21-Aug-09 2:38 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak21-Aug-09 4:08
mveDave Kreskowiak21-Aug-09 4:08 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:35
Adriaan Davel25-Aug-09 19:35 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak26-Aug-09 1:56
mveDave Kreskowiak26-Aug-09 1:56 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel30-Aug-09 19:15
Adriaan Davel30-Aug-09 19:15 
GeneralRe: Throw it like you mean it... Pin
Gideon Engelberth21-Aug-09 3:53
Gideon Engelberth21-Aug-09 3:53 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:19
Adriaan Davel25-Aug-09 19:19 
GeneralRe: Throw it like you mean it... Pin
supercat925-Aug-09 5:25
supercat925-Aug-09 5:25 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:40
Adriaan Davel25-Aug-09 19:40 
GeneralRe: Throw it like you mean it... Pin
supercat926-Aug-09 5:40
supercat926-Aug-09 5:40 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel30-Aug-09 19:33
Adriaan Davel30-Aug-09 19:33 
GeneralRe: Throw it like you mean it... Pin
supercat931-Aug-09 5:11
supercat931-Aug-09 5:11 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel31-Aug-09 19:30
Adriaan Davel31-Aug-09 19:30 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel31-Aug-09 0:39
Adriaan Davel31-Aug-09 0:39 
QuestionRecognizing an object instance after regenerating dinamicly the assembly Pin
Mehdi_S21-Aug-09 0:06
Mehdi_S21-Aug-09 0:06 
QuestionKeeping Command Console Open After Running Process Pin
Tristan Rhodes20-Aug-09 23:45
Tristan Rhodes20-Aug-09 23:45 
Hi Guys,

I am running a command line application from inside my C# code, however it's failing and exiting out immediately. I'm trying to get the window to stay open after the program has finished running.

I've tried the following:

This opens the window, runs the script, fails and closes it:
Process.Start(@"C:\Program Files\Inno Setup 5\iscc.exe", @"%dir%\MyInstallScript.iss");

This opens the window, keeps it open, and says: 'C:\Program' is not recognized as an internal or external command, operable program or batch file.:
Process.Start("cmd.exe", "/k \"C:\\Program Files\\Inno Setup 5\\iscc.exe\" \"%dir%\\MyInstallScript.iss\"");

Second one seems a bit weird, as i am wrapping everything in quotes as expected. Not sure what's going on here. Do i need to do something crazy like nesting the quotes? And if so, how would i do that? Any thoughts?

Regards

Tris

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

AnswerRe: Keeping Command Console Open After Running Process Pin
Alan N21-Aug-09 7:38
Alan N21-Aug-09 7:38 
AnswerRe: Keeping Command Console Open After Running Process Pin
qmartens22-Aug-09 19:46
qmartens22-Aug-09 19:46 
GeneralRe: Keeping Command Console Open After Running Process Pin
Alan N23-Aug-09 7:08
Alan N23-Aug-09 7:08 

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.