小编Sia*_*huk的帖子

Windows 上 FileVersionInfo.FileVersion 字符串的最大可能长度

我想将版本存储在数据库表中,不想使用varchar(max)它。我想要固定的东西varchar(xxx)

你能告诉我,FileVersionInfo.FileVersionWindows 平台上的最大可能长度是多少?

实际上想出了如何获得正确的版本:

var ver = FileVersionInfo.GetVersionInfo("D:\\oraociei11.dll").FileVersion;
Run Code Online (Sandbox Code Playgroud)

这将返回 Oracle 库:

OraOCIEI11.dll - 11.2.0.1.0 Production
oracore11.dll - 11.2.0.1.0 Production
oranls11.dll - 11.1.0.6.0 Production
orasnls11.dll - 11.1.0.6.0 Production
oraunls11.dll - 11.1.0.6.0 Production
oravsn11.dll - 11.2.0.2.0 Production
oracommon11.dll - 11.2.0.2.0 Production
orageneric11.dll - 11.2.0.2.0 Production
oraclient11.dll - 11.2.0.2.0 Production
orapls11.dll - 11.1.0.6.0 Production
orasql11.dll - 11.1.0.6.0 Production
oraxml11.dll - 11.1.0.6.0 Production
orahasgen11.dll - 11.2.0.1.0 Production
oraocrutl11.dll - 11.2.0.1.0 Production
oraocr11.dll - 11.2.0.1.0 Production
oraocrb11.dll - 11.2.0.1.0 Production …
Run Code Online (Sandbox Code Playgroud)

c# io file

1
推荐指数
1
解决办法
2224
查看次数

标签 统计

c# ×1

file ×1

io ×1