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

martin

Log file is created if you use the /log option.

You need to use some programming language to interpret the log.
sumdumgai

Can't figure this out. Does WinSCP create the log file if I add /log option, or do I have to create one (how)? If I need to run a script to create and read the log file, I'm in trouble because I just don't have any JAVA scripting experience. I just want to know if any files were downloaded. Thanks.
sumdumgai

Whoa. That's a lot to digest. But I'll study this a bit to try and understand it. Like I said, my scripting experience is very limited. Thanks for your advice.
martin

Re: Errorlevel 0 but no files downloaded!

If you are using a mask (wildcard) to download files, then absence of files is not an error. You may investigate XML log after the script finished to find if any files were downloaded. Use this script for inspiration. Just when looking for files replace "w:file/w:filename" with "w:download/w:filename".
sumdumgai

Errorlevel 0 but no files downloaded!

My remote server occasionally has no files to download but I can't find any way to trap that condition. Errorlevel for WinSCP returned is zero in my .bat file. I've tried Batch Abort with no luck. I've searched FAQ's. Is there a simple way to check if files are available for download or have been downloaded? I don't have any JAVA scripting experience. I am using WINSCP batch scripting commands. Thanks for your help.