Access File Properties c#

Posted by Toashish80 under C# on 2/23/2011 | Points: 10 | Views : 5069 | Status : [Member] | Replies : 4
I am reading a list of files from a path in my windows application and I want to display the properties of the file in a grid. How can I get the type, title, author, size (in KB) of a file. I can get some attributes of the file using FileInfo and FileSystemInfo but not the title, author?




Responses

Posted by: Karthikanbarasan on: 2/24/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Check these links

http://csharp.net-tutorials.com/file-handling/file-and-directory-information/

http://www.codeproject.com/KB/files/VersionApp.aspx


Thanks
Karthik
www.f5Debug.net

Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Toashish80 on: 2/24/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks Karthik, but I am able to get the file name, length using the fileinfo class.

Is there any way we can get the author, title of the file?

Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/24/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Yes it will have the some properties to get that as well... Check that class object itself... let me try to post an example

Thanks
Karthik
www.f5Debug.net

Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Toashish80 on: 2/24/2011 [Member] Starter | Points: 25

Up
0
Down
I had checked the FileInfo Class object and also the FileSystemInfo but was unable to get the author, title of the file?



Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response