Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Determine the Properties of a File?
Message
 
To
15/11/2004 19:51:12
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00961581
Message ID:
00961617
Views:
7
Take a look at the System.IO.File class.

File.GetAttributes("myfile.txt");
File.GetCreationTime("myfile.txt");

>Good morning DotNetters!
>
>Is there a way to get the properties of a file? Like when we right click on a file and select PROPERTIES from the menu all the available properties and values of the file are displayed. Is there a way to access these properties from .NET?
>
>The scenario is that I have a control on a form which displays the list of files on the current directory. When a user clicks on a file the properties are (suppose to be) displayed to the user.
>
>Any ideas on how this can be achieved?
>
>Thanx! in advance 8)
>
>Martin
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform