您的位置:首页 > 其它

更改只读文件属性为正常

2006-08-18 13:49 471 查看
//设置Test.txt为只读
private void button1_Click(object sender, System.EventArgs e)
//设置Test.txt为正常
private void button2_Click(object sender, System.EventArgs e)
System.IO.FileInfo file1=new System.IO.FileInfo("Test.txt");
file1.Attributes=System.IO.FileAttributes.Normal;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: