|
Post by 1180michel on May 9, 2021 5:12:50 GMT -5
Hi ! It seems simple, but it's not (for me). How to get the name of the OS (Windows XP, Windows 7 and so...). I found something in C++ but I can not "translate".
Thanks for help ! 1180michel.
|
|
|
Post by Rod on May 9, 2021 10:56:17 GMT -5
|
|
|
Post by 1180michel on May 10, 2021 4:23:05 GMT -5
Oooops ! I have this book ! There is indeed the answer to my question ! Thanks, Rod !
|
|
|
Post by Brandon Parker on May 10, 2021 9:37:58 GMT -5
Rod, Which example are you referring to?
Note that if anyone is using the GetVersionExA function from the Kernel32.dll, you will have to pay attention to this little snippet...
You will most likely get Version 6.xxx returned unless you manifest the application accordingly.
{:0)
Brandon Parker
|
|
|
Post by Rod on May 10, 2021 14:21:05 GMT -5
It is discussed in Alyce’s book. But yes it has limitations.
|
|
|
Post by metro on May 11, 2021 3:23:58 GMT -5
Of Course there is always the old hack
open "getversion.bat" for output as #1 #1 "ver >version.txt" close #1 run "getversion.bat"
open "version.txt" for input as #2 txt$ = input$(#2, lof(#2)) close #2 print txt$
|
|