![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
DBR1
Newbie
Joined: March 04 2004 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: capture errorsPosted: 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?
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
DBR1
Newbie
Joined: March 04 2004 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |