Start Process With File name : Process « Development Class « C# / C Sharp






Start Process With File name

   
//http://simpledbbrowser.codeplex.com/
//License:  Microsoft Public License (Ms-PL)  
using System.Diagnostics;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace AWS.Framework.WPF.Utility
{
    public sealed class Helpers
    {
        public static void StartProcessWithFilename(string fileName)
        {
            // Start a process: http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage&lang=en
            ProcessStartInfo psi = new ProcessStartInfo();
            psi.FileName = fileName;
            psi.UseShellExecute = true;
            Process.Start(psi);
        }
   }
}

   
    
    
  








Related examples in the same category

1.Get current Process Name
2.Start And Kill Process
3.Running another program from your own.
4.CloseMainWindow,WaitForExit
5.Enum Modules For Pid
6.Build up a list of the running processes
7.Input Output:Starting ProcessesInput Output:Starting Processes
8.Redirecting Process OutputRedirecting Process Output
9.Detecting Process CompletionDetecting Process Completion
10.Get Process propertyGet Process property
11.Get ThreadsGet Threads
12.List ProcessList Process
13.List ThreadsList Threads
14.Listing all threads for a process inn a ListView
15.Create Process As User
16.Open Url In Browser
17.Navigate to page
18.Browse a folder
19.Start and kill process (2)
20.Find Media Center Process
21.Launches the winsat program