摘要: private void RunBat(string batPath) { Process pro = new Process(); FileInfo file = new FileInfo(batPath); pro.StartInfo.WorkingDirectory = file.Directory.FullName; pro.StartInfo.FileName = batPat... 阅读全文
posted @ 2015-01-06 18:15 平民的麦田 阅读(393) 评论(0) 推荐(0) 编辑
摘要: //给Excel文件添加"Everyone,Users"用户组的完全控制权限 FileInfo fi = new FileInfo(excelPath); System.Security.AccessControl.FileSecurity fileSecurity = fi.GetAccessControl(); fileSecurity.AddAccessRule(new F... 阅读全文
posted @ 2015-01-06 17:47 平民的麦田 阅读(413) 评论(0) 推荐(0) 编辑