1 Attachment(s)
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:
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?
Re: VB (but applies to all) - BEST way to disconnect internet connection
Re: VB (but applies to all) - BEST way to disconnect internet connection
It works on my connection. But it doesn't work on my client's connection.
He uses asdl and to disconnect he needs username and password. He uses adsl or something.
CLAD genius software can do that though.