For file size FileInfo is worth a look
System.IO.FileInfo file = new System.IO.FileInfo(string filename);
long fileSize = file.Length;
This will give you the file size.
and get attributes like hidden status. something like the following can get it
if (file.Attributes & System.IO.FileAttributes.Hidden == System.IO.FileAttributes.Hidden)
{
}
In the second NAudio library to search for track duration [in seconds]
source
share