forum

Home / DeveloperSection / Forums / Launch WPF application using Process.Start

Launch WPF application using Process.Start

Anonymous User 3715 14-Nov-2013

I am attempting to launch a wpf application using Process.Start.

var programPath = @"C:\Users\user\Documents\Program
Directory\program.exe";
if(!File.Exists(programPath))
{
     MessageBox.Show("The program.exe file does not exist! Cannot launch.");
     return;
}
Process.Start(programPath);

My WPF process flashes in the task manager briefly before immediately closing.


c# c# 
Updated on 14-Nov-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By