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,022 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now