$os
From Scriptwiki
Returns the version number of the operating system.
$os
The reply can be 95, 98, NT, ME, 2K, XP, 2003, or Vista.
- This function has no properties.
Example
$os ;returns XP when you are using Windows XP