I want to distinguish between Windows XP and Windows 7 in an XML file. I think that I will use the environment variable for it inside XML.
However, I could not find the system environment variable defined in the windows that provides this information.
I see the% OSTYPE% variable, but it is only available in Windows 7. It is not defined in XP.
Anyway, can I do this?
Please note that I need a solution that depends only on the environment variables of the system. I do not want to create new variables based on the execution of some command, because I want to use this variable in an XML file.
source
share