Download FileManagement_demo.zip - 11.1 KB
Download FileManagement_src.zip - 156 KB
Introduction
This Article explain some useful funcatinality in System.IO.FileInfo class. and also few useful method for the file size customization.
Background
The Windows system could store additional information like provide additional inforamtion with fileInfo class and more and more. and base dll System.dll.
It's simple user interface for this demo,and also source code can be download bellow link
Using Code
code snippts
<code>
#region [ string GetSegment (string ParentPath)]<br />
</code>
and also you can customize buffer size.
and another simple snippt for File basic attribue provide by the Microsoft class library,but here demo

and snippts
<code>
private void GetFileAttibutes (string Filename)<br />{<br />FileInfo objFileInfo=new FileInfo(Filename);<br />FileAttributes objFileAttributes = objFileInfo.Attributes;<br />switch (objFileAttributes)<br />{<br />case FileAttributes.Archive:<br />chkArchive.Checked = true;<br />break;<br />case FileAttributes.Compressed:<br />chkCompressed.Checked = true;<br />break;<br />case FileAttributes.Device:<br />chkDevice.Checked = true;<br />break;<br />case FileAttributes.Directory:<br />chkDirectory.Checked = true;<br />break;<br />case FileAttributes.Encrypted:<br />chkEncrypted.Checked = true;<br />break;<br />case FileAttributes.Hidden:<br />chkHidden.Checked = true;<br />break;<br />case FileAttributes.Normal:<br />chkNormal.Checked = true;<br />break;<br />case FileAttributes.NotContentIndexed:<br />chkNotContentIndexed.Checked = true;<br />break;<br />case FileAttributes.Offline:<br />chkOffline.Checked = true;<br />break;<br />case FileAttributes.ReadOnly:<br />chkReadOnly.Checked = true;<br />break; <br />case FileAttributes.System:<br />chkSystem.Checked = true;<br />break;<br />case FileAttributes.Temporary:<br />chkTemporary.Checked = true;<br />break;<br /><br />}<br />}
</code>
Thanks Guys
And please it's my First article , so may be have mistake any category in the viewer, so please tell any suggestions to me via email
Thanks Enjoy!!!