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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user