I working on C# application to filter the files sent from the computer to USB device based on the
file attributes. For example filter files by name, size, extension and other characteristics.
Any ideas?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Feb 24, 2012, 2:14 AM
I am not understanding what you are exactly looking for.
If you want to get the file details then you can use the following.
Please include the System.IO namespace.
FileInfo fileInfo = new FileInfo(filepath);
if(fileInfo.Exists)
{
//Lot of proerties
fileInfo.Extension
Name
FullName
Length
}
Please go through my article.
http://www.c-sharpcorner.com/uploadfile/skumaar_mca/working-with-fileinfo-and-directoryinfo-classes/