• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Dialing from dos prompt NT4.0

How can i dial-up a telephone number via dos prompt.
OS is NT4.0 workstation.
I can't use rasphonebook,because every time, telephone number is different.
I used commando rasdialer /phone:5678900(a telephon number) but it dosen't work.

does anybody knows a command?
Farbood Najafi
Farbood Najafi
  • 3
  • 2
1 Solution

"ECHO ATDT5678900 > COMx "

(where x is your modem COM port number)

Open a command prompt and enter the command


You'll see the help to use the dialer command

Farbood NajafiSystem AdministratorAuthor Commented:
Hi darrenburke,
Thank you for your help,
it is interesting but it doesnt work with windows nt4.
do you know something for nt4

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.



RasDial <PB_Entry> <user_ID> <password>

for example, let's say You need to dial a phonebook
entry (RAS connection) called "MyISP" and logon to
the server with userid=foo and password=bar, You'll
enter the command

rasdial MyISP foo bar

You could check for dial success/failure results by
examining the "dos" errorlevel code; e.g. if You use
a shell script You could have something like:

@echo off
rasdial MyISP foo bar
rem --- error checks
if errorlevel 2 goto err2
if errorlevel 1 goto err1
rem --- all ok - go on
goto done
rem --- handle here
echo Error 1 ...
goto quit
rem --- another ...
echo Error 2 ...
goto quit
rem --- do other actions to be performed
rem --- after a successful connection
ping www.altavista.com
rem --- common exit

just an example, hope it's clear



I forgot one thing

to dial a variable number You MUST create a "fake"
phonebook entry, then override the default phone
number using the /PHONE switch in rasdial

in my example above:

rasdial MyISP foo bar /PHONE:123456789

that's all

Farbood NajafiSystem AdministratorAuthor Commented:
Hello Anzen
Thanks for your answer.

Good luck
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now