Error Level 1 - showed up

Advertisement

chinjoe
Guest

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!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum