浏览:381 2008-03-18 15:50 来自 (NineTyNine)      :

FileInfo FInfo = new FileInfo(FilePath);
if (IsHidden == true)
{
     FInfo.Attributes = FileAttributes.Hidden;
}
if (IsSystem == true)
{
     FInfo.Attributes = FileAttributes.System;
}
if (IsArchive == true)
{
     FInfo.Attributes = FileAttributes.Archive;
}
if (IsReadOnly == true)
{
     FInfo.Attributes = FileAttributes.ReadOnly;
}

四个属性都设为true 

为什么只修改文件的只读属性?

收藏 楼主

注册用户登录后才能回复,登录注册
> 返回“ASP.NET”


其他话题

相关内容

相关链接

1 24851