Topic "Error Level 1 - showed up"

Author Message
chinjoe

Guest


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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
Please enable looging to file using /log switch and post a log file.
http://winscp.net/eng/docs/commandline
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License