Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


I need a .bat file that looks like this: to launch Hyperterminal and dial automatically a phone number then end the call after copying files.

Posted on 2008-06-19
Medium Priority
Last Modified: 2012-08-14
I need a .bat file  (Batch File)

1) Launch Hyperterminal and dial automatically a phone number
C:\Program Files\Windows NT\hypertrm.exe
2) Copy some files and then end the call or close Hyperterminal automatically

How can i do that please?
Question by:bkerson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Author Comment

ID: 21831177
Hi Vee_Mod,

Thank you for replying me on my request.
OS : Windows XP
Application : Hyperterminal
What I need, is simple but difficult to figure it out. I need a batch file to load hyperterminal and launch a call on its own. or how to use hyperterminal in a batch file that can open automatically a .ht file to launch a call. Is there any switch for hypertrm.exe. Any idea will be greatly appreciated
LVL 29

Accepted Solution

matrixnz earned 1000 total points
ID: 21840598
Sorry don't have a modem to test this with but you could use RasDial for the dialup and then telnet to send files etc..

Alterntaively you may want to look at a third party tool that can do evertthing for you like Kermit - or CommNet -

Hope that's of some help.


Author Comment

ID: 21846499

This is a good idea however we can send in telnet I don't thing we can copy or get a file from a remote server. Don't we. If so how we can copy the files remotely.

Author Comment

ID: 22171275
This has been resolved by using a vbscript. This vbscript uses hypertherminal to dial then the script enter automatically username and password. Done!!!!!!!!

Before loading the script create an ht file in hypertherminal

Set oshell = createobject("Wscript.Shell")"cmd.exe"
wscript.sleep 500
oshell.sendkeys"hypertrm.exe d:\smtplogs\"+("{Enter}")
wscript.sleep 6000
wscript.sleep 500
wscript.sleep 500
oshell.sendkeys"d:\smtplogs\router.txt"+("{Enter}&q uot;)
wscript.sleep 12000
oshell.sendkeys" "
wscript.sleep 6000
oshell.sendkeys" "
wscript.sleep 1500
oshell.sendkeys" "
wscript.sleep 1500
oshell.sendkeys" "
wscript.sleep 1500
wscript.sleep 1500
wscript.sleep 1500
wscript.sleep 1500
set oshell = nothing

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT ( The crux of this batch f…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

704 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