Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identify OS version
Message
From
28/06/2014 03:08:00
 
 
To
28/06/2014 01:00:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01602753
Message ID:
01602772
Views:
62
>>What does the ver command line utility give you in Win8.1?
>
>In VFP 9.0 the OS() function returns 6.2, and OS(5) returns 9200
>
>VER from the command line reports 6.3.9600
>
>Although you can apparently "fix" this problem by setting up the appropriate section in the manifest file to specify that the program is targeted for Windows 8.1 (so that Windows won't lie to it), it's not really permanent... If this is going to be a "feature" of the OS, then we're left with the situation of updating the manifest each time a new version of the OS comes out and do a recompile, then redistribute to each of your customers that upgrade their computer (and how many of us have dealt with customer that claimed that *nothing* was changed in their computer, and that the software "just disappeared" with all their data -- and that the only thing that changed was "the box where you put the CDs into")...
>
>I suppose another route could be that we launch the command line process (assuming that it will report the correct version) and "capture" that result from the command line VER command... Kind'a seems like we're stepping back into the PC/MS-DOS days again...

There is also a winver command. Both it and ver must be making use of some underlying Windows call, just need to find out what it is and how to call it.

UPDATE: good grief, took a brief look at your earlier links and some Googling, from VFP parsing the output of ver will be easier than anything I found. Until someone steps up and wraps that versionhelper stuff in something easy to use like a FLL, anyways ...
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform