| 本帖最后由 lchl0588 于 2012-6-18 16:32 编辑 
 回复 15# afan
 根据你的启示:
 不知道是否合格Dim $name, $user, $password
Local $a = FileOpen("d:/本机宽带密码和网卡IP.txt", 0)
$ts = TimerInIt();盗用你的代码 
While 1 
 $b = FileReadLine($a)
 If StringInStr($b,"宽带帐号                         :")<>0 Then
$user=StringSplit($b,":")[2]         
  EndIf
  If StringInStr($b,"宽带密码                         :")<>0 Then
          $password=StringSplit($b,":")[2]
  EndIf
  If StringInStr($b,"PPP adapter")<>0 Then
          $name=StringMid(StringSplit($b,":")[1],12)
  EndIf
  If $Name Then ExitLoop
   WEnd
   FileClose($a)
   $te = Round(TimerDiff($ts), 3) & ' ms' ;盗用你的代码
MsgBox(0,$te,$name&@CR&$user&@CR&$password)
.gif) 不过显示时间是盗用你的代码
 .gif) |