Does anyone know a way to detect the version of an operating system and service pack via a batch file or VB script? I have found the registry string to detect SP6a in NT4, but have not been able to put to use.
My application is: I want to allow or disallow the installation of an application depending on the OS and service pack version.
I have tried using the "regfind" utility on NT4 resource CD, but have not had luck incorporating into "IF" statement in batch file.
Any help is greatly appreicated