Users Pricing

forum

Home Forums Launch WPF application using Process.Start – MindStick

Launch WPF application using Process.Start

Anonymous User 4237 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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md