Jump to content

Recommended Posts

Posted

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

Posted
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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...