9 个解决方案
#1
还请各位大拿,多多关照!
#2
for li_1 = 0 to 10
li_rc =registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipmask',ls_ipmask)
if li_rc = -1 then continue
if ls_ipmask = '255.255.255.0' then
registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipaddress',gs_login_ip)
exit
end if
next
可以正常获取,win7+pb 7
li_rc =registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipmask',ls_ipmask)
if li_rc = -1 then continue
if ls_ipmask = '255.255.255.0' then
registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipaddress',gs_login_ip)
exit
end if
next
可以正常获取,win7+pb 7
#3
多谢smitxx!能问一下,你运行的那个WIN7是32位还是64位的?
#4
32位的
#5
#6
试了没问题,检查一下防火墙 。。。
#7
是的,没有问题的!
#8
单击右键,使用管理员身份运行试试~~
#9
我用的win7 64位,用这两个函数可以修改注册表啊!不过我用的是pb9.0,11.2应该没有理由不行吧
#1
还请各位大拿,多多关照!
#2
for li_1 = 0 to 10
li_rc =registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipmask',ls_ipmask)
if li_rc = -1 then continue
if ls_ipmask = '255.255.255.0' then
registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipaddress',gs_login_ip)
exit
end if
next
可以正常获取,win7+pb 7
li_rc =registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipmask',ls_ipmask)
if li_rc = -1 then continue
if ls_ipmask = '255.255.255.0' then
registryGet('hkey_local_machine\system\currentcontrolset\services\class\nettrans\'+&
string(li_1,'0000'),'ipaddress',gs_login_ip)
exit
end if
next
可以正常获取,win7+pb 7
#3
多谢smitxx!能问一下,你运行的那个WIN7是32位还是64位的?
#4
32位的
#5
#6
试了没问题,检查一下防火墙 。。。
#7
是的,没有问题的!
#8
单击右键,使用管理员身份运行试试~~
#9
我用的win7 64位,用这两个函数可以修改注册表啊!不过我用的是pb9.0,11.2应该没有理由不行吧