Solved

Dialing from dos prompt  NT4.0

Posted on 2001-08-20
6
241 Views
Last Modified: 2013-12-28
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?
0
Comment
Question by:Farbood Najafi
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:darrenburke
ID: 6406679
try

"ECHO ATDT5678900 > COMx "

(where x is your modem COM port number)
0
 
LVL 4

Expert Comment

by:anzen
ID: 6464892

Open a command prompt and enter the command

RASDIAL /?

You'll see the help to use the dialer command

Bye
0
 
LVL 1

Author Comment

by:Farbood Najafi
ID: 6535789
Hi darrenburke,
Thank you for your help,
it is interesting but it doesnt work with windows nt4.
do you know something for nt4

thanks
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:anzen
ID: 6535819

Enter:

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
:err1
rem --- handle here
echo Error 1 ...
goto quit
:err2
rem --- another ...
echo Error 2 ...
goto quit
:done
rem --- do other actions to be performed
rem --- after a successful connection
ping www.altavista.com
:quit
rem --- common exit

just an example, hope it's clear

Bye



0
 
LVL 4

Accepted Solution

by:
anzen earned 100 total points
ID: 6535824

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

0
 
LVL 1

Author Comment

by:Farbood Najafi
ID: 6546633
Hello Anzen
Thanks for your answer.

Good luck
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pdf to excel 8 70
How to make the default printer settings to all the users? 2 37
Disable SSL 3 6 34
autocad mechanical 2014 installation issue 5 22
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question