• 0

[BATCH file] Checking version of windows


Question

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

  • 0

I just opened a CMD and type VER and it gave me this:

Microsoft Windows XP [Version 5.1.2600]

Perhaps piping it ( | ) through a filter or redirecting it to a text file ( > file.txt) and then reading that value might work for you?

Good luck. I'm rusty at batch files...

Link to comment
Share on other sites

  • 0
DOH! I thought it was a value in set. I confused myself so much because I remember using ver.

I totally sympathize. I used to be a wiz at batch stuff, then basic programming, then other programming. Now my gray matter feels empty on these subjects. Guess I'm out of practice and getting older. Thankfully, there is a world full of young HaX0rz out there to do stuff for me. :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.