uses Registry;<br>var<br> Reg:TRegistry;<br> webs:TStrings;<br> I: Integer;<br>begin<br> Reg:=TRegistry.Create;<br> webs:=TStringList.Create;<br><br> Reg.RootKey:=HKEY_CURRENT_USER;<br>//清除IE地址栏<br> Reg.OpenKey('Software/Microsoft/Internet Explorer/TypedURLs',True);<br> Reg.GetKeyNames(webs);<br> I:=0;<br> while I<webs.Count do<br> begin<br> Reg.DeleteKey(webs);<br> I:=I+1;<br> end;<br> Reg.CloseKey;<br>//修改为默认页<br> Reg.OpenKey('Software/Microsoft/Internet Explorer/Main',True);<br> Reg.WriteString('Local Page','C:/WINDOWS/SYSTEM/blank.htm');<br> Reg.WriteString('Start Page','about:blank');<br> Reg.CloseKey;<br><br> Reg.Free;