---
title: "Launch WPF application using Process.Start"  
description: "Launch WPF application using Process.Start"  
author: "Anonymous User"  
published: 2013-11-14  
updated: 2013-11-14  
canonical: https://www.mindstick.com/forum/1740/launch-wpf-application-using-process-start  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Launch WPF application using Process.Start

I am attempting to [launch](https://www.mindstick.com/news/2241/what-does-the-launch-of-google-cloud-s-own-node-hosting-service-mean-for-web3-developers) a [wpf](https://www.mindstick.com/forum/304/wpf) [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) using [Process](https://yourviews.mindstick.com/story/1525/7-important-factors-that-may-affect-the-learning-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](https://www.mindstick.com/forum/161761/what-is-the-difference-between-task-and-thread) [manager](https://www.mindstick.com/articles/13000/perks-of-implementing-a-quotation-manager) briefly before immediately closing.

## Replies

### Reply by Anonymous User

Hi John,

```
Process proc = new Process();proc.StartInfo.FileName = programPath;proc.StartInfo.WorkingDirectory =
Path.GetDirectoryName(programPath);proc.Start();
```

The trick was to set the working directory to the path of the WPF application, rather than the working directory of the launching application.


---

Original Source: https://www.mindstick.com/forum/1740/launch-wpf-application-using-process-start

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
