本帖最后由 dtooboss 于 2010-4-13 00:22 编辑
方法一#include <Process.au3>
_RunDOS('ipconfig /all > log.txt')
_RunDOS('Notepad.exe log.txt')
三行搞定。
方法二#include <ACN_NET.au3>
$info = _NetworkAdapterInfo()
FileWrite("info.txt", "网卡名称:" & $info[1][1] & @CRLF & "连接名称:" & $info[1][9] & @CRLF & "DNS主机名称:" & $info[1][3] _
& @CRLF & "IP地址:" & $info[1][4] & @CRLF & "子网掩码:" & $info[1][7] & @CRLF & "默认网关:" & $info[1][2] _
& @CRLF & "主DNS:" & $info[1][5] & @CRLF & "次DNS:" & $info[1][6] & @CRLF & "MAC地址:" & $info[1][8])
Run("Notepad.exe info.txt", "", @SW_MAXIMIZE)
多了点...... |