Sha256: 153e28b46e3d15ab0d5a823dd1ce7018ba98e4282413731bdbc3f886d7b26c13
Contents?: true
Size: 544 Bytes
Versions: 66
Compression:
Stored size: 544 Bytes
Contents
require 'metadata/util/win32/peheader' class File def self.getVersionInfo(fname) PEheader.new(fname).versioninfo end end ########################################################### # Only run if we are calling this script directly if __FILE__ == $0 puts "Running script [#{__FILE__}]" vi = File.getVersionInfo("c:/temp/strings.exe") # vi = File.getVersionInfo("c:/windows/system32/mui/0419/xpob2res.dll") #Russian version_info file vi.each_pair { |k, v| puts "vi[#{k}] = [#{v}]" } puts "Completed script [#{__FILE__}]" end
Version data entries
66 entries across 66 versions & 1 rubygems