Get Windows OS version in command line script

I am looking for the easiest way to determine the OS version in a .cmd script
If this is via a small Delphi executable for which the script can test something, I am happy
LVL 1
LeTayAsked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.