Winform:中直接打开指定文件

    string v_OpenFilePath = @"c:\新建文本文件.txt";

            if (v_OpenFilePath.Equals(""))
            {
                MessageBox.Show("路径不能为空!","操作提示");
                return;
            }

            //先判断文件是否存在,不存在则提示
            if (!System.IO.File.Exists(v_OpenFilePath))
            {
                MessageBox.Show("指定文件不存在!","操作提示");
                return;
            }
            //存在则打开
            System.Diagnostics.Process.Start("explorer.exe",v_OpenFilePath);

 

转:http://www.cnblogs.com/phcis/archive/2009/02/19/1394167.html

原文地址:https://www.cnblogs.com/yuanxianlai/p/2618110.html