Discussion Locked

BAT file to detect active dial-up

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

Cutting longer story short, using NT4.0 and wishing to detect whether there is an active dial-up connection to the Internet. If so run command line to download email. Command line to download email OK. Detecting active dialup not.

TIA,

john K.

5 replies

by timthetoolman

Hi,

Cutting a long story short.

ping microsoft.com > c:\temp\temp_ping.txt

Open temp_ping.txt and look at results...

Cheers,
Tim.

by jkopetko

Excuse me being a mug. 'ping' seems the smarts, but how do I open, read and check ping was successful within a bat file?

John

by timthetoolman

Unfortunately the answer to that is... not easily. At least not in DOS.

DOS (.bat files) doesn't provide a lot in the way of file access. Nothing actually.

So you may need to write something in some other language to do it. I could have a lookin PERL (Which I know quite well) if you're still interested?

Cheers,
Tim.

This discussion is closed to new replies.