Connect and Disconnect(Shell Commands)

Use this board to post your code snippets - tips and tricks
4 posts Page 1 of 1
Contributors
User avatar
NecroPhis
VIP - Donator
VIP - Donator
Posts: 345
Joined: Sun Aug 08, 2010 1:14 pm

here simple shell commands for connect and disconnect

For Disconnect:
Code: Select all
Shell("NET STOP DHCP")
For Connect:
Code: Select all
Shell("NET START DHCP")
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

This doesn't disconnect connections.
Last edited by mandai on Sat May 05, 2012 12:46 am, edited 1 time in total.
User avatar
upperdrag
Excellent Poster
Excellent Poster
Posts: 321
Joined: Fri Mar 12, 2010 12:05 pm

run as admin... i posted before you btw :D
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

For example if you had a static IP then this would have no effect.
4 posts Page 1 of 1
Return to “Quick Snips”