1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to disconnect internet connection using batch file?

Discussion in 'Windows XP' started by Eric, Mar 21, 2010.

  1. Eric

    Eric Flightless Bird

    Does anyone have any suggestions on how to write a batch file to disconnect
    the internet connection? I am using boardband modem.
    Thanks in advance for any suggestions
    Eric
     
  2. Pegasus [MVP]

    Pegasus [MVP] Flightless Bird

    "Eric" <Eric@discussions.microsoft.com> wrote in message
    news:57C6B1DC-E696-400D-A209-9701DFC8BC2D@microsoft.com...
    > Does anyone have any suggestions on how to write a batch file to
    > disconnect
    > the internet connection? I am using boardband modem.
    > Thanks in advance for any suggestions
    > Eric


    You can use devcon.exe
    (http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe)
    to disable or enable your network adapter. You'll have to put a certain
    amount of work into automating the process, same as for the other
    suggestions you received in your parallel posts.
     
  3. Eric

    Eric Flightless Bird

    Thank you very much for suggestions
    When I am online, there is a monitor's icon to show online status, when I
    disconnect the internet connection, I just right click this icon and select
    disconnect, and this is what I want to do to disconnect the boardband
    connection.
    Can devcon.exe perform this trick by using Excel's macro - VBA to activate
    it? which should not involve any IP or modem hardware setting at all?
    Do you have any suggestions?
    Thanks in advance for any suggestions
    Eric

    "Pegasus [MVP]" wrote:

    >
    >
    > "Eric" <Eric@discussions.microsoft.com> wrote in message
    > news:57C6B1DC-E696-400D-A209-9701DFC8BC2D@microsoft.com...
    > > Does anyone have any suggestions on how to write a batch file to
    > > disconnect
    > > the internet connection? I am using boardband modem.
    > > Thanks in advance for any suggestions
    > > Eric

    >
    > You can use devcon.exe
    > (http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe)
    > to disable or enable your network adapter. You'll have to put a certain
    > amount of work into automating the process, same as for the other
    > suggestions you received in your parallel posts.
    >
    > .
    >
     
  4. Pegasus [MVP]

    Pegasus [MVP] Flightless Bird

    You need to ask an Excel newsgroup whether a VBA script can invoke an .exe
    file.

    "Eric" <Eric@discussions.microsoft.com> wrote in message
    news:7003C0DC-1911-4718-92F1-383821DFDEF2@microsoft.com...
    > Thank you very much for suggestions
    > When I am online, there is a monitor's icon to show online status, when I
    > disconnect the internet connection, I just right click this icon and
    > select
    > disconnect, and this is what I want to do to disconnect the boardband
    > connection.
    > Can devcon.exe perform this trick by using Excel's macro - VBA to activate
    > it? which should not involve any IP or modem hardware setting at all?
    > Do you have any suggestions?
    > Thanks in advance for any suggestions
    > Eric
    >
    > "Pegasus [MVP]" wrote:
    >
    >>
    >>
    >> "Eric" <Eric@discussions.microsoft.com> wrote in message
    >> news:57C6B1DC-E696-400D-A209-9701DFC8BC2D@microsoft.com...
    >> > Does anyone have any suggestions on how to write a batch file to
    >> > disconnect
    >> > the internet connection? I am using boardband modem.
    >> > Thanks in advance for any suggestions
    >> > Eric

    >>
    >> You can use devcon.exe
    >> (http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe)
    >> to disable or enable your network adapter. You'll have to put a certain
    >> amount of work into automating the process, same as for the other
    >> suggestions you received in your parallel posts.
    >>
    >> .
    >>
     

Share This Page