bkerson
asked on
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.
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
ASKER
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.Shel l")
oshell.run"cmd.exe"
wscript.sleep 500
oshell.sendkeys"hypertrm.e xe d:\smtplogs\router.ht"+("{ Enter}")
wscript.sleep 6000
oshell.sendkeys"%t"
wscript.sleep 500
oshell.sendkeys"t"
wscript.sleep 500
oshell.sendkeys"d:\smtplog s\router.t xt"+("{Ent er}&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"+("{E nter}")
wscript.sleep 1500
oshell.sendkeys"%f"
wscript.sleep 1500
oshell.sendkeys"x"
wscript.sleep 1500
oshell.sendkeys("{Enter}")
wscript.sleep 1500
oshell.sendkeys"exit"+("{E nter}")
set oshell = nothing
Before loading the script create an ht file in hypertherminal
Set oshell = createobject("Wscript.Shel
oshell.run"cmd.exe"
wscript.sleep 500
oshell.sendkeys"hypertrm.e
wscript.sleep 6000
oshell.sendkeys"%t"
wscript.sleep 500
oshell.sendkeys"t"
wscript.sleep 500
oshell.sendkeys"d:\smtplog
wscript.sleep 12000
oshell.sendkeys" "
wscript.sleep 6000
oshell.sendkeys" "
wscript.sleep 1500
oshell.sendkeys" "
wscript.sleep 1500
oshell.sendkeys" "
oshell.sendkeys"exit"+("{E
wscript.sleep 1500
oshell.sendkeys"%f"
wscript.sleep 1500
oshell.sendkeys"x"
wscript.sleep 1500
oshell.sendkeys("{Enter}")
wscript.sleep 1500
oshell.sendkeys"exit"+("{E
set oshell = nothing
ASKER
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