Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the version from a file reference
Message
De
16/02/2009 21:00:53
 
 
À
15/02/2009 16:27:27
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01381828
Message ID:
01382266
Vues:
21
You're welcome! =0)

~~Bonnie

>>That's because you've gone about it the wrong way. You don't need to load the file in order to get it's version. Try this:
>>
>>
>>FileVersionInfo vers = FileVersionInfo.GetVersionInfo(@"c:\MyFile");
>>cVersion = vers.FileVersion;
>>
>
>Thanks, this works.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform