PiqueABoo Posted February 19, 2010 Posted February 19, 2010 What, as in the full output, does the ver command say when run on R2 (I can't get to one to look until monday?
Soulfish Posted February 19, 2010 Posted February 19, 2010 Returned: Microsoft Windows [Version 6.1.7600] for me 1
PiqueABoo Posted February 19, 2010 Author Posted February 19, 2010 Thanks, but it's not what I need then (I'm making a batch file that has to cope with lots of OSs). Plan B: What do these two reg values contain? HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion
mattx Posted February 19, 2010 Posted February 19, 2010 Thanks, but it's not what I need then (I'm making a batch file that has to cope with lots of OSs). Plan B: What do these two reg values contain? HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion You could use AutoIT's RegRead function: RegRead ( "keyname", "valuename" ) $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir") MsgBox(4096, "Program files are in:", $var)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now