I have seemed to have found the following just as a test, but they both run and give the same XP message... any suggestions??
' -------------------------------------------------------------------------
' Test to check OS version
' -------------------------------------------------------------------------
Option Explicit
On Error Resume Next
' *********************************************************************************
' Separates different versions
' *********************************************************************************
CONST HKEY_LOCAL_MACHINE = &H80000002
CONST WINDOWS_XP = "Microsoft Windows XP"
strComputer = "."
set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
objReg.GetStringValue HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", strComputerOS
if (strComputerOS = WINDOWS_XP) then
'Run the XP version
wscript.echo "Windows XP"
else
'Run the Win7 version
wscript.echo "Windows 7"
end if
' *********************************************************************************
' End Separates different versions
' *********************************************************************************