IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
How do I get the exact Version and service pack of my Operating System using SilkTest?
QUESTION ----------------------------------
ANSWER ----------------------------------
For example: when you use SYS_GetVersion() it returns 5.1 for both WinXP SP1 and WinXP SP2. SYS_GetName() returns Windows XP for both platforms.
Unfortunately SilkTest will not return the operating system version when set to call GetVersionEx in kernel.dll. As it was necessary in one project to distinguish between the two XP Service Pack versions by script, a Visual Basic app (GetOSVer) was created to do the job. The following support files from Microsoft are also needed:
Microsoft VB6 Support files
NOTE: GetOSVer will return the operating system version and service pack version for ALL windows platforms.
The app works in two modes; silent and manual. As supplied it is set to silent mode. If you want to see the app working, open up the getos.ini file and set SilentGet=0. Please remember though to reset SilentGet to 1 (one) before attempting to run it from SilkTest. If you do not, the app will simply wait for ever for a manual input and the test will fail.
This information is repeated in the readme.doc included in the archive.
THIS IS SUPPLIED AS IS AND THERE IS NO SUPPORT FOR IT.
GetOSVer.zip