OSMajor

Table of contents

  1. get @osmajor

get @osmajor

Retrieves the major version number of the operating system

echo windows major version: !@osmajor!
10