最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ipclear.vbs源代碼

 更新時(shí)間:2007年02月25日 00:00:00   作者:  
復(fù)制代碼 代碼如下:

Option Explicit 

Dim sourcefile,ipaddress,objargs

const destfile="tempfile"
Const ForWriting = 2

Dim Text
Dim fso,objNet,ServiceObj
Dim txtStream, txtStreamOut 

Set objArgs = WScript.Arguments 
If objArgs.Count = 2 Then 
sourcefile=objArgs(0)
ipaddress=objargs(1)
Else
wscript.echo "Parameter Error"+ vbcrlf
wscript.Echo "USAGE:KillLog.vbs LogFileName YourIP."
wscript.Quit 1
End If


Set fso = CreateObject("Scripting.FileSystemObject")
if fso.FileExists (sourcefile) then
Set objNet = WScript.CreateObject( "WScript.Network" )
Set ServiceObj = GetObject("WinNT://" & objNet.ComputerName & "/w3svc")
Set objNet=nothing
ServiceObj.stop
wscript.sleep 6000
Set txtStream = fso.OpenTextFile(sourcefile) 
Set txtStreamOut = fso.OpenTextFile(destfile, ForWriting, True)
Do While Not (txtStream.atEndOfStream) 
Text = txtStream.ReadLine 
if instr(Text,ipaddress)=0 then
txtStreamOut.WriteLine Text 
end if
Loop

Set txtStream = Nothing 
Set txtStreamOut = Nothing

WScript.Echo "The log file-- " & sourcefile &" has cleaned your IP!"
Else
WScript.Echo "The Log file-- " & sourcefile & " has not found!"
Wscript.quit
End If
fso.Copyfile destfile, sourcefile
fso.deletefile destfile
Set fso=Nothing
ServiceObj.start
Set ServiceObj = Nothing


相關(guān)文章

最新評論

斗六市| 四子王旗| 兰溪市| 棋牌| 谢通门县| 谢通门县| 张家港市| 乌海市| 德江县| 句容市| 湟源县| 西乌珠穆沁旗| 台北市| 宜阳县| 陇川县| 偏关县| 伊春市| 锡林郭勒盟| 鹿泉市| 宣城市| 吉水县| 江油市| 庐江县| 安庆市| 泰来县| 高阳县| 辉南县| 天等县| 三门县| 南昌市| 盐山县| 剑川县| 珠海市| 棋牌| 宜丰县| 迁安市| 大冶市| 平顺县| 合山市| 巴林左旗| 尼勒克县|