473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Shutdown DUN connection

How can I, from an external program, shut down a Dial Up Network or whatever
it is called in XP, connection?

The two computers (icon in the tray).

I wish to be able to send a disconnect and cause that program to exit
memory.

I have a program that automates my ISP connect experience and loads all
appropraite programs etc and for the most part shutsdown but don't know how
to do this last step.

Thanks,

Shane
Nov 20 '05 #1
2 1005
you can use the shell command to run the RASDIAL [connectionname]
/DISCONNECT

ie shell("rasdial myisp /disconnect")

HTH
Simon
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How can I, from an external program, shut down a Dial Up Network or whatever it is called in XP, connection?

The two computers (icon in the tray).

I wish to be able to send a disconnect and cause that program to exit
memory.

I have a program that automates my ISP connect experience and loads all
appropraite programs etc and for the most part shutsdown but don't know how to do this last step.

Thanks,

Shane

Nov 20 '05 #2
interesting.. That may be the ticket.

I will try this.

Thanks,

"Simon Verona" <ne**@aphroditeuk.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
you can use the shell command to run the RASDIAL [connectionname]
/DISCONNECT

ie shell("rasdial myisp /disconnect")

HTH
Simon
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How can I, from an external program, shut down a Dial Up Network or

whatever
it is called in XP, connection?

The two computers (icon in the tray).

I wish to be able to send a disconnect and cause that program to exit
memory.

I have a program that automates my ISP connect experience and loads all
appropraite programs etc and for the most part shutsdown but don't know

how
to do this last step.

Thanks,

Shane


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

74
by: John Wells | last post by:
Yes, I know you've seen the above subject before, so please be gentle with the flamethrowers. I'm preparing to enter a discussion with management at my company regarding going forward as either...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
1
by: Jet | last post by:
Hi all, I want to shutdown or reboot or logoff my window by my programme.And when I connect to my machine, and then run ManagementObjectSearcher.Get() method it throw me an exception mean "Cannot...
1
by: Graeme Hinchliffe | last post by:
Hiya I am writing a daemon in C which monitors a table stored in postgres. I would ideally like the daemon to be able to withstand things such as the db connection going away or the db being...
4
ADezii
by: ADezii | last post by:
Passive Shutdown is a little known, Jet 4 enabled feature that allows you to prevent Users from connecting to a Database. It is also known as Connection Control. This feature is referred to as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.