【发布时间】:2015-09-17 21:20:38
【问题描述】:
我正在使用 NWJS 开发桌面应用程序,我需要获取 .exe 文件的文件属性。
我尝试使用 npm 属性模块 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,但没有运气。 有什么想法吗?
【问题讨论】:
标签: node.js node-webkit file-properties