I am running into a slight dillema in checking the version of windows using a batch file. The %OS% switch only seems to show Windows_NT on NT based systems. I thought it would be %ver%... but ver does not exist as a set value! I looked through the set values and there doesn't seem to be anything there to help me. So, maybe there is another trick to find out the version of Windows? Any ideas?
Question
PseudoRandomDragon
I am running into a slight dillema in checking the version of windows using a batch file. The %OS% switch only seems to show Windows_NT on NT based systems. I thought it would be %ver%... but ver does not exist as a set value! I looked through the set values and there doesn't seem to be anything there to help me. So, maybe there is another trick to find out the version of Windows? Any ideas?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts