Solved

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
6
3,148 Views
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?
0
Comment
Question by:bkerson
[X]
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
6 Comments
 

Author Comment

by:bkerson
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
0
 
LVL 29

Accepted Solution

by:
matrixnz earned 500 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..
Commands
rasdial.exe
telnet.exe

Alterntaively you may want to look at a third party tool that can do evertthing for you like Kermit - http://www.columbia.edu/kermit/ or CommNet - http://www.radient.com/products.html

Hope that's of some help.

Cheers
0
 

Author Comment

by:bkerson
ID: 21846499
Hi

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.
0
 

Author Comment

by:bkerson
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")
oshell.run"cmd.exe"
wscript.sleep 500
oshell.sendkeys"hypertrm.exe d:\smtplogs\router.ht"+("{Enter}")
wscript.sleep 6000
oshell.sendkeys"%t"
wscript.sleep 500
oshell.sendkeys"t"
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" "
oshell.sendkeys"exit"+("{Enter}")
wscript.sleep 1500
oshell.sendkeys"%f"
wscript.sleep 1500
oshell.sendkeys"x"
wscript.sleep 1500
oshell.sendkeys("{Enter}")
wscript.sleep 1500
oshell.sendkeys"exit"+("{Enter}")
set oshell = nothing
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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