Results 1 to 8 of 8

Thread: VB (but applies to all) - BEST way to disconnect internet connection

Threaded View

  1. #1

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247

    VB (but applies to all) - BEST way to disconnect internet connection

    After searching for hours to find the perfect way to solve this problem, I thought to myself "Why not just do it through the command prompt? Everything works better in there". So here it is:

    VB Code:
    1. RunCommand "RasDial /DISCONNECT"

    I have attached the module including the code used to run Command Prompt commands in VB.

    Reason why I think this is the best:
    I have seen the other APIs like AutoDialHangup and all of that, but I think this way is the best because you don't have to create the connection with any extra code in order to close it. This works every time, with any kind of dialup connection.

    Anyone think there is a better, easier way?
    Attached Files Attached Files
    The "company" website My homepage: nerisoft.com
    scars heal but glory is forever

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width