找回密码
 加入
搜索
查看: 1830|回复: 0

[系统综合] 如何判斷IP地址獲取方式

[复制链接]
发表于 2014-1-15 10:01:27 | 显示全部楼层 |阅读模式
最近寫一個修改IP地址的小程序;在釋放IP地址后,想加上一條判斷當前IP地址是否由DHCP獲取的(就是想判斷一下DHCP Enabled狀態),不知道怎麼寫,求教各位大神,菜鳥求教。

RunWait(@ComSpec & " /c " & _                                                                                                     'netsh interface ip set address name="' & _                                                                                         $Name & '" source=dhcp',"",@SW_HIDE)                                                          RunWait(@ComSpec & " /c " & _                                                                                         'netsh interface ip set dns name="' & _                                                                                         $Name & '" source=dhcp',"",@SW_HIDE)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-12 00:29 , Processed in 0.072378 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表