Message388937
> For the other 10% (diagnostic logging), it would be nice to have a
> better option than running "cmd /c ver"
CMD's VER command (cmd!eVersion) calls GetVersion(), for which, in its case, the API calls the internal function GetVersion_Current(). The VER command also reads the UBR value (update build revision) directly from the registry.
Other than using CMD, I suppose there's the option of creating an extension module in C++ that gets the Win32_OperatingSystem WMI data, which includes the "major.minor.build" version string. But that's much more complicated. |
|
Date |
User |
Action |
Args |
2021-03-17 16:26:37 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, corona10, bugale bugale, Orbital |
2021-03-17 16:26:37 | eryksun | set | messageid: <1615998397.24.0.600426738723.issue43284@roundup.psfhosted.org> |
2021-03-17 16:26:37 | eryksun | link | issue43284 messages |
2021-03-17 16:26:36 | eryksun | create | |
|