問題タブ [versioninfo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - MaxOs versionInfo の PowerShell が空です
MacOS で実行されている Python スクリプトを使用して、Windows 実行可能ファイルの versionInfo を取得する必要があります。Winapi は MacOS では使用できないため、その方法は powershell コマンドを使用することであることがわかりました。here で説明されているように、brew を介してインストールしました。その後、pwshが実行されます。
MacOS の exe で Get-Item または Get-ItemProperty を使用すると、値は返されますが、ProductionVersion と FileVersion は空です。
Windows で同じファイルに対して同じコマンドを実行すると、両方の値が返されます。
私は何を間違っていますか?MacOS で winapi を使用して win exe を操作する代替手段はありますか?