Open File In Explorer : File Security Permission « Windows « C# / C Sharp






Open File In Explorer

 
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
using System.Diagnostics;
class MainClass{
        public static void OpenFileInExplorer(string path)
        {
            Process proc = new Process();
            proc.StartInfo.FileName = "explorer.exe";
            proc.StartInfo.Arguments = path;

            proc.Start();
        }
}

   
  








Related examples in the same category

1.Demand FileIOPermissionAccess.AllAccess
2.Use SecurityManager to check the FileIOPermissionAccess.Write
3.FileSecurity
4.FileSystemRights.Read