Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - capture errors
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum Lockedcapture errors

 Post Reply Post Reply
Author
Message
DBR1 View Drop Down
Newbie
Newbie


Joined: March 04 2004
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote DBR1 Quote  Post ReplyReply Direct Link To This Post Topic: capture errors
    Posted: March 04 2004 at 2:20am
I am writing a script in BASIC to automate file transfers to our multiple offices around the country via DSL connection. Is there a way I can capture errors that may occur like unsuccessful connections or sudden drops in a connection?
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: March 04 2004 at 10:45am
Is this script in VBA, running in AccuTerm's script window, or a VBA script downloaded from the host using ESC STX "P", or just a BASIC program on the host?
Back to Top
DBR1 View Drop Down
Newbie
Newbie


Joined: March 04 2004
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote DBR1 Quote  Post ReplyReply Direct Link To This Post Posted: March 05 2004 at 1:28am
The VBA script is all written within a BASIC program on the host using ESC STX "P" command to execute the script.
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: March 05 2004 at 4:45am
Hi -

You can add code in your script to check for a valid connection, for example check the value of the Session.Connected property to tell if your connection was successful. You can check the value of Session.XferStatus after performing a transfer (zero if successful). Your script can send a status back to the host: InitSession.Output CStr(status) & Chr$(13) and the host can do an INPUT STATUS to receive the status from the script.

Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.