1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00

增加GetExeDllVersion函数获取exe,dll版本号

This commit is contained in:
guanren
2024-10-18 00:00:18 +08:00
parent 213e2b4ead
commit a74462941e
5 changed files with 74 additions and 4 deletions

View File

@@ -619,3 +619,10 @@ func TestChunkRead(t *testing.T) {
assert.Equal("Jim,21,male", lines[1])
}
func TestGetExeDllVersion(t *testing.T) {
v, err := GetExeDllVersion(`C:\Program Files\Tencent\WeChat\WeChat.exe`)
if err != nil {
t.Error(err)
}
t.Log(v)
}