Dear Members,
Can I change my IP address with FiveWin/Harbours?
I am using Internet by ISP company.
If possible, please let me have some sample or link on IP Change.
Thanks.
cAdapterType:="Local Area Connection"
cIP:="192.168.0.200"
cSubNet:="255.255.255.0"
cGateWay:="192.168.0.1"
oShell = CreateObject("Wscript.Shell")
oShell:Run ( 'netsh interface ipv4 set address name="'+cAdapterType+'" source=static address='+cIP+' mask='+cSubNet+' gateway='+cGateWay,0,.T. )
oShell:Run ( 'netsh interface ipv4 set dns name = "'+cAdapterType+'" source = static addr ='+cDns1,0,.T. )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 67 guests