Launch File with Process.Start - CSharp File IO

CSharp examples for File IO:File Command

Description

Launch File with Process.Start

Demo Code


using System.Windows.Forms;
using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using System;/*from ww w  .j ava2 s .co m*/

public class Main{
        public static void LaunchFile(string path)
        {
            Process.Start("Explorer.exe", $"/e, /root, \"{path}\"");
        }
}

Related Tutorials