SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPPutFile

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPPutFile
Author Message
Charles Dunning



Joined: 29 Aug 2002
Posts: 12

Post FTPPutFile Reply with quote

Is there a way to check and see if the command runs correctly?

Wed Oct 08, 2003 1:51 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: FTPPutFile Reply with quote

If it does not, an exeption is raised and the job fails (unless you turn on "ignore job errors" option for this job)

: Is there a way to check and see if the command runs correctly?

Wed Oct 08, 2003 3:57 pm View user's profile Send private message
Charles Dunning



Joined: 29 Aug 2002
Posts: 12

Post Re: FTPPutFile Reply with quote

: If it does not, an exeption is raised and the job fails (unless you turn on
: "ignore job errors" option for this job)

Is there any way to trap this error in the program?

Wed Oct 08, 2003 4:44 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: FTPPutFile Reply with quote

What do you mean?

It is already trapped. The error is automatically written to the job log.

If you don't want automatic error handling you can code something like the following

Dim error, string
OnErrorGoTo MY_ERROR_HANDLER

FTPPutFile .....
OnErrorStop
... other statements ...
Exit

MY_ERROR_HANDLER:
GetLastError error
OnErrorStop

ChooseCase error, END_CHOOSE
Case "file ..."
... handle it ...
Case "ftp..."
CaseElse
... handle other errors ...
END_CHOOSE:

: Is there any way to trap this error in the program?

Wed Oct 08, 2003 4:56 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.