delphi 修改host文件的办法 delphi 修改host文件的办法Delphi下 如何修改 host文件我想做个免疫的软件免疫流氓网站 求解 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Button1Click(Sender: TObject);var t:TStringList;begin t:=TStringList.Create; t.LoadFromFile('c:\windows\system32\drivers\etc\hosts'); t.Add('127.0.0.1 www.xxx.com'); //加你的网站 //... t.SaveToFile('c:\windows\system32\drivers\etc\hosts'); t.free;end; 我之前研究过host,但我觉得改完了不太管用 恭喜tjianliang成为非技术版版主 初学DELPHI,不知道正则是如何写的? 数据更新问题 11月22日赴日工程师面试(上海) 按时间查询数据库 FastReport2.5的怪问题! 自己写的控件怎么装好了,又无故消失了。 有一个问题,来者有分! 别见笑,一个菜问题. 在html如何相应ActiveFrom的事件 改名后找不到dcu文件 请各路高手们帮完成一个实例记录程序
var
t:TStringList;
begin
t:=TStringList.Create;
t.LoadFromFile('c:\windows\system32\drivers\etc\hosts');
t.Add('127.0.0.1 www.xxx.com'); //加你的网站
//...
t.SaveToFile('c:\windows\system32\drivers\etc\hosts');
t.free;
end;