Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Determine the Properties of a File?
Message
 
À
15/11/2004 19:51:12
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00961581
Message ID:
00961617
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform