disable network through Visual basic

hi every one,

can any one help me out with this problem.

can we disconnect from network using visual basic.
i want help how can we disconnect a PC from network using visual basic.

thanks and  Regards

vinay shetty




Answer this question

disable network through Visual basic

  • pittpantha

    VB has no built in method to do this, however there are some workarounds.

       Microsoft includes a network utility "Net.exe" which is located in the c:\windows\system32 directory.  If you use the VB Shell() comand  shell("net.exe stop") this will stop the net access.   You may be able to use system.net.httplistener.stop if you only want to stop internet access.

     

     



  • taekdar

     

    Thanks Chris Innes ,

    I have found a better way to disable my network PC from Network using devcon.exe.

    Thanks and regards

    vinay shetty



  • disable network through Visual basic