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,068 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

770 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