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...
[ 查看全文 ]