我正在使用NWJS开发一个桌面应用程序,需要获取.exe文件的文件属性。我尝试使用npm properties模块https://github.com/gagle/node-properties,但返回的对象为空。
properties.parse('./unzipped/File.exe', { path: true }, function (err, obj) {
if (err) {
console.log(err);
}
console.log(obj);
});
我需要获取“文件版本”属性:
我也尝试使用fs.stats,但没有成功。 有什么想法吗?