哈,我来拿分了。<br>windows版本:var ver:integer;<br> major:integer;<br> minor:integer;<br> begin<br> ver:=getversion;<br> major:=ver and 255;<br> minor:=(ver and 255*256)div 256;<br> ShowMessage('系統版本號是:'+IntToStr(ver));<br> ShowMessage('系統主版本號是:'+IntToStr(major));<br> ShowMessage('系統次版本號是:'+IntToStr(minor));<br> end;<br><br>IE版本:<br> Registry; <br><br>function GetIEVersion(Key: string): string; <br>var <br> Reg: TRegistry; <br>begin <br> Reg := TRegistry.Create; <br> try <br> Reg.RootKey := HKEY_LOCAL_MACHINE; <br> Reg.OpenKey('Software/Microsoft/Internet Explorer', False); <br> try <br> Result := Reg.ReadString(Key); <br> except <br> Result := ''; <br> end; <br> Reg.CloseKey; <br> finally <br> Reg.Free; <br> end; <br>end; <br><br><br>procedure TForm1.Button1Click(Sender: TObject); <br>begin <br> ShowMessage('IE-Version: ' + GetIEVersion('Version')[1] + '.' + GetIEVersion('Version')[3]); <br> ShowMessage('IE-Version: ' + GetIEVersion('Version')); <br> // <major version>.<minor version>.<build number>.<sub-build number> <br>end; <br><br><br> <br><br>