On 01/06/2019 7:07 AM, Machine Code wrote:
is there something on std library or package on dub to get a executable version on windows? just in case I don't need to dig into winapi.

Like C#'s:

FileVersionInfo.GetVersionInfo(path).FileVersion

https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.fileversioninfo.fileversion?view=netframework-4.8

You'll need to go to WinAPI.

Here is a jumping off point[0] and yes we have bindings for it[1] (although missing the Ex versions).

[0] https://docs.microsoft.com/en-us/windows/desktop/api/winver/nf-winver-getfileversioninfow [1] https://github.com/dlang/druntime/blob/8fd52019826259dc92ab712f4b37a3f0ea4d8265/src/core/sys/windows/winver.d

Reply via email to