Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Re: Automating file upload and download with reliability.

Fixed it.

I hate to admit it, but it was a simple logic error in the batch file.

All is working perfectly.

Cheers.
Guest

Re: Automating file upload and download with reliability.

Hi, and thanks for the reply ...

Following is a snippet from the activity log ...
<-----Snippet starts here----->
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] username@remote.server.com
transfer binary
y:\!Uploads_To_Remote
username:/Local to Remote
local_filename.zip | 0 kB | 0.0 kB/s | binary | 0%
Host has not answered for 15 seconds.
Wait for another 15 seconds? Pressing 'Abort' button will close session.
(A)bort, (R)etry: Abort
Copying files to remote side failed.
Terminated by user.
Session 'username@remote.server.com' closed.
No session.
No session.
FILES SUCCESSFULLY DOWNLOADED!

Y:\!Uploads_To_Remote\local_filename.zip
1 file(s) copied.
<-----Snippet ends here----->

Now, this script is called by a batch file which checks for returning errorlevel value.
As you can see, the session failed however the "FILES SUCCESSFULLY DOWNLOADED!" prompt still appears indicating a successful transfer.

I also have a second script that is used to download files from the remote but it suffers from similar reliability issues. I want to be able to delete files off the remote after a successful xfer.

Any ideas?


martin wrote:

First, please describe me the scenario where you have the problems.

Prime wrote:

I want to take the script to the next level (delete remote files after successful download) but clearly this is dangerous if the downlaod failed.

Have you tried using "option batch abort"?
martin

Re: Automating file upload and download with reliability.

First, please describe me the scenario where you have the problems.

Prime wrote:

I want to take the script to the next level (delete remote files after successful download) but clearly this is dangerous if the downlaod failed.

Have you tried using "option batch abort"?
Prime

Automating file upload and download with reliability.

Hi all.

I've been trying to write scripts to automate the upload and download of files from a remote server.

Sometimes it works ... sometimes it doesn't ... regardless, the expected errorlevel never indicates anything other than a successful result.

I want to take the script to the next level (delete remote files after successful download) but clearly this is dangerous if the downlaod failed.

Is there any more information about errorlevels and or ways of guaranteeing success?

TIA

Prime