//check if windows 95 or 98 If (WindowsVersion.StartsWith("Windows 9"){ //do windows 95 or 98 specific stuff }