Click here to Skip to main content
15,917,618 members
Home / Discussions / C#
   

C#

 
GeneralRe: Extension Methods... Pin
PIEBALDconsult30-Nov-07 13:51
mvePIEBALDconsult30-Nov-07 13:51 
GeneralRe: Extension Methods... Pin
PIEBALDconsult30-Nov-07 10:05
mvePIEBALDconsult30-Nov-07 10:05 
AnswerRe: Extension Methods... Pin
Pete O'Hanlon30-Nov-07 11:08
mvePete O'Hanlon30-Nov-07 11:08 
GeneralRe: Extension Methods... Pin
martin_hughes30-Nov-07 11:26
martin_hughes30-Nov-07 11:26 
Questionthreading off a file copy Pin
davidhart30-Nov-07 5:19
davidhart30-Nov-07 5:19 
AnswerRe: threading off a file copy Pin
Luc Pattyn30-Nov-07 5:36
sitebuilderLuc Pattyn30-Nov-07 5:36 
AnswerRe: threading off a file copy Pin
led mike30-Nov-07 5:39
led mike30-Nov-07 5:39 
Questionrestarting an application using batch file Pin
samy10030-Nov-07 5:02
samy10030-Nov-07 5:02 
Hi,

i am trying to restart and application from within by using a batch file.

this is my batch:
TASKKILL /F /IM MyApp.exe /T
PAUSE
start MyApp.exe

when i run it by double clicking it - it does the job - closes and reopen MyApp.exe.

when i try to do it from the application by using :
System.Diagnostics.Process p = new System.Diagnostics.Process();
String path = Application.StartupPath + @"\";
p.StartInfo.FileName = path + @"ResetApp.bat";
p.Start();

the batch kill my application but doesn't restart it(doesn't get to the pause line in the batch file) - i guess that when my application is terminated it also kills the batch operation.

how can i detach the batch from the application, or is there other way to make my batch run from the application indepentlly?

thanks,

Samy
AnswerRe: restarting an application using batch file Pin
Anthony Mushrow30-Nov-07 5:41
professionalAnthony Mushrow30-Nov-07 5:41 
AnswerRe: restarting an application using batch file Pin
led mike30-Nov-07 5:46
led mike30-Nov-07 5:46 
GeneralRe: restarting an application using batch file Pin
samy10030-Nov-07 6:22
samy10030-Nov-07 6:22 
GeneralRe: restarting an application using batch file Pin
led mike30-Nov-07 6:28
led mike30-Nov-07 6:28 
GeneralRe: restarting an application using batch file Pin
Anthony Mushrow30-Nov-07 8:12
professionalAnthony Mushrow30-Nov-07 8:12 
AnswerRe: restarting an application using batch file Pin
Alan N30-Nov-07 7:26
Alan N30-Nov-07 7:26 
AnswerRe: restarting an application using batch file Pin
Giorgi Dalakishvili30-Nov-07 7:34
mentorGiorgi Dalakishvili30-Nov-07 7:34 
GeneralRe: restarting an application using batch file Pin
Anthony Mushrow30-Nov-07 8:13
professionalAnthony Mushrow30-Nov-07 8:13 
QuestionE-mail Error Pin
NewToAspDotNet30-Nov-07 4:35
NewToAspDotNet30-Nov-07 4:35 
AnswerRe: E-mail Error Pin
Paul Conrad30-Nov-07 4:40
professionalPaul Conrad30-Nov-07 4:40 
GeneralRe: E-mail Error Pin
NewToAspDotNet30-Nov-07 4:59
NewToAspDotNet30-Nov-07 4:59 
GeneralRe: E-mail Error Pin
m@u30-Nov-07 5:01
m@u30-Nov-07 5:01 
GeneralRe: E-mail Error Pin
NewToAspDotNet30-Nov-07 5:07
NewToAspDotNet30-Nov-07 5:07 
GeneralRe: E-mail Error Pin
m@u30-Nov-07 5:17
m@u30-Nov-07 5:17 
GeneralRe: E-mail Error Pin
NewToAspDotNet30-Nov-07 5:25
NewToAspDotNet30-Nov-07 5:25 
GeneralRe: E-mail Error Pin
m@u30-Nov-07 5:29
m@u30-Nov-07 5:29 
GeneralRe: E-mail Error Pin
NewToAspDotNet30-Nov-07 5:34
NewToAspDotNet30-Nov-07 5:34 

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.