文件描述居然在版本信息下
$f=dir C:\ServicingStack-10\wcp.dll
$f
目录: C:\ServicingStack-10
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2015/7/10 17:07 3227136 wcp.dll
$f.Length
3227136
$f.VersionInfo
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.10240.16384 10.0.10240.16... C:\ServicingStack-10\wcp.dll
$f.VersionInfo | gm
TypeName:System.Diagnostics.FileVersionInfo
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
Comments Property string Comments {get;}
CompanyName Property string CompanyName {get;}
FileBuildPart Property int FileBuildPart {get;}
FileDescription Property string FileDescription {get;}
FileMajorPart Property int FileMajorPart {get;}
FileMinorPart Property int FileMinorPart {get;}
FileName Property string FileName {get;}
FilePrivatePart Property int FilePrivatePart {get;}
FileVersion Property string FileVersion {get;}
InternalName Property string InternalName {get;}
IsDebug Property bool IsDebug {get;}
IsPatched Property bool IsPatched {get;}
IsPreRelease Property bool IsPreRelease {get;}
IsPrivateBuild Property bool IsPrivateBuild {get;}
IsSpecialBuild Property bool IsSpecialBuild {get;}
Language Property string Language {get;}
LegalCopyright Property string LegalCopyright {get;}
LegalTrademarks Property string LegalTrademarks {get;}
OriginalFilename Property string OriginalFilename {get;}
PrivateBuild Property string PrivateBuild {get;}
ProductBuildPart Property int ProductBuildPart {get;}
ProductMajorPart Property int ProductMajorPart {get;}
ProductMinorPart Property int ProductMinorPart {get;}
ProductName Property string ProductName {get;}
ProductPrivatePart Property int ProductPrivatePart {get;}
ProductVersion Property string ProductVersion {get;}
SpecialBuild Property string SpecialBuild {get;}
FileVersionRaw ScriptProperty System.Object FileVersionRaw {get=New-Object System.Version -ArgumentList @(...
ProductVersionRaw ScriptProperty System.Object ProductVersionRaw {get=New-Object System.Version -ArgumentList @...
$f.VersionInfo
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.10240.16384 10.0.10240.16... C:\ServicingStack-10\wcp.dll
$f.VersionInfo.CompanyName
Microsoft Corporation
$f.VersionInfo.FileDescription
Windows Componentization Platform Servicing API
$f.VersionInfo.FileVersionRaw
Major Minor Build Revision
----- ----- ----- --------
10 0 10240 16384
$f.VersionInfo.IsPatched
False
$f.VersionInfo.IsDebug
False
$f.VersionInfo.IsPreRelease
False
$f.VersionInfo.IsPrivateBuild
False
$f.VersionInfo.IsSpecialBuild
False
$f.VersionInfo.OriginalFilename
wcp.dll
$f.VersionInfo.Language
英语(美国)
$f.VersionInfo.InternalName
WCPDll
$f.VersionInfo.LegalCopyright
© Microsoft Corporation. All rights reserved.
$f.VersionInfo.SpecialBuild
$f.VersionInfo.LegalCopyright
© Microsoft Corporation. All rights reserved.
$f.VersionInfo.Comments
$f.VersionInfo.FileBuildPart
10240
$f.VersionInfo.FileName
C:\ServicingStack-10\wcp.dll