[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

10/26/2009 at 07:06PM PDT, ID: 24845885 | Points: 500
[x]
Attachment Details

c# how to run code after process is completed?

Asked by ronin83 in C# Programming Language, Programming for ASP.NET, Visual Studio

Tags: process c# asp.net programming

I'm running the following code to execute FFMPEG from my webpage button click:

Process p22;
ProcessStartInfo info22 = new ProcessStartInfo();
info22.FileName = "c:\\3gffmpeg.exe";
info22.WindowStyle = ProcessWindowStyle.Hidden;
info22.Arguments = " -i c:\\" + realfilename + " -f 3gp -sameq -ar 22050 c:\\test.3gp";
p22 = Process.Start(info22);

I'd like to run set some code to run when that process is completed, if possible. some sort of try/catch relationship, where the catch{code} would be the code to run after process completes.

is there anything like this?
[+][-]10/26/09 07:43 PM, ID: 25668778

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/26/09 08:36 PM, ID: 25668964

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/26/09 09:42 PM, ID: 25669191

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/26/09 09:53 PM, ID: 25669225

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/27/09 04:16 AM, ID: 25671000

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/27/09 06:02 AM, ID: 25671875

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/27/09 06:22 PM, ID: 25679249

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/27/09 06:38 PM, ID: 25679318

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/27/09 06:44 PM, ID: 25679353

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/20/09 06:32 PM, ID: 25876075

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625