Home > Software engineering >  Excuse me, does anyone know how to use VB6 command to connect to the Internet?
Excuse me, does anyone know how to use VB6 command to connect to the Internet?

Time:09-25

Whether to call API function
Or what is the command?
Give everyone a great god can help best to the code
Thank you very much!!!!!!

CodePudding user response:

What do you mean? Network communication you want to do? TCP/IP available winsock control (that is, can do chat software), FTP available API,

CodePudding user response:

The following batch is for reference only:
 if "% 1"=="l" goto l 
If "% 1"=="w" goto w
Echo network address switch batch
Echo setip l - switch to the local connection
Echo setip w - switch to the wireless network connection
Goto e

: l
Echo switch from static IP wireless network to the wired network static IP:
Netsh interface IP set the DHCP address wireless network connection
Netsh interface DHCP IP set the DNS wireless network connection
Netsh interface IP set address local connection static 192.168.1.111 255.255.252.0 192.168.2.1 1
Netsh interface IP set DNS local connection static 202.106.196.115
Goto e

: w
Echo from static IP switch to the wired network infinite network static IP:
Netsh interface IP set address local connection DHCP
Netsh interface IP set DNS local connection DHCP
Netsh interface IP set static address wireless network connection 192.168.1.5 255.255.255.0 192.168.1.1 1
Netsh interface IP set DNS wireless network connection static 211.97.168.129
Goto e

E

CodePudding user response:

With URLDownloadToFile API function, you can download

CodePudding user response:

I want to use vb6 is control computer network connect and disconnect
Is not a network communication

CodePudding user response:

reference 4 floor AmProgrammer response:
I wanted to use vb6 control computer network connect and disconnect
Is not a network communication

Search "devcon"

CodePudding user response:

I want to use vb6 is control computer network connection and disconnection & lt; Br/& gt;
Is not a network communication & lt;/blockquote>

Search "devcon
"But its use or DOS command!

CodePudding user response:

 Shell "devcon... ", vbHide 

CodePudding user response:

Could you tell me... Is a parameter or SSID and password

CodePudding user response:

Don't use the Shell calls to disable/enable DOS command control network card is not a VB6 programming?
  • Related