WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

DialUp Networking (DUN) Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Getting out of DUNConnect Wait

Keywords:    DUNConnect  DUNDisconnect

Question:

I'm using WinBatch to automate a DUN connection and logon process, using one script to make the connection and another to monitor it and take care of the terminal window. The problem is that I need the second script to be able to cancel the connection, as DUNConnect does not return until the entire logon process is complete.

I can use DUNDisconnect(0) in the monitoring script, which hangs up the modem, but the other script will not close with anything except Ctrl-Alt-Del (I tried IntControl 47 to no avail).

Why is it doing this, and is there anything I can do about it?

Answer:

Maybe try Ctrl-Break.

The DUN functions were not really designed to be shot by another script.

You may wish to try the alternate version that does not use DunConnect.

See Article ID: W13291


Article ID:   W12626
Filename:   Getting out of DunConnect Wait.txt
File Created: 2000:03:27:16:17:26
Last Updated: 2000:03:27:16:17:26