摘要: 我们可以使用 System.IO.File 类的 SetAttributes 方法为一个文件设置相关的属性,如: // 为文件加上一个只读的属性 FileAttributes attrs = File.GetAttributes("c:\\a.txt"); File.SetAttributes("c:\\a.txt",... 阅读全文
posted @ 2004-12-24 18:54 匡匡 阅读(2860) 评论(3) 推荐(0) 编辑