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

chinjoe

Error Level 1 - showed up

Hi,
Thanks in advance for any help!
I have a script that has been working for quite awhile now but a week ago it started to give error level 1. Most time nothing was downloaded, but it happens sometime even after successful download. I am using version 4.3.4.1428 on windows 2003 server. Here is my script:

set Today=%Date%

set Year=%Today:~10,4%
set Month=%Today:~4,2%
set Day=%Today:~7,2%
rem set filename = status%Year%%Month%%Day%.txt


set fileA=%Year%%Month%%Day%_photos_daily_a.zip
set fileP=%Year%%Month%%Day%_photos_daily_p.zip
set fileUC=%Year%%Month%%Day%_photos_daily_uc.zip



set DestinationDir="C:\MLSPICS\"
WinSCP.com /console /command "option batch on" "option confirm off" "open ftp://Username:password@ftp.somesite.com" "cd /VERSION_6" "get %fileA% %DestinationDir%" "exit"
ECHO.
Echo 1,%fileA%,%errorlevel%,%Year%-%Month%-%Day% %time%>>status%Year%%Month%%Day%.txt

WinSCP.com /console /command "option batch on" "option confirm off" "open ftp://Username:password@ftp.somesite.com" "cd /VERSION_6" "get %fileP% %DestinationDir%" "exit"
ECHO.
Echo 1,%fileP%,%errorlevel%,%Year%-%Month%-%Day% %time%>>status%Year%%Month%%Day%.txt

WinSCP.com /console /command "option batch on" "option confirm off" "open ftp://Username:password@ftp.somesite.com" "cd /VERSION_6" "get %fileUC% %DestinationDir%" "exit"
ECHO.
Echo 1,%fileUC%,%errorlevel%,%Year%-%Month%-%Day% %time%>>status%Year%%Month%%Day%.txt



thanks for your help!