FTP Error not stopping BAT

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



FTP Error not stopping BATExpand / Collapse
Author
Message
Posted 8/15/2007 11:43:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/9/2007 11:12:44 AM
Posts: 1, Visits: 18
Problem i have a command line ftp running through a BAT file in windows
and the FTP is getting an error 1/2 way through writing the file however the remainder of the BAT process continues.

Can I validate taht the transfer tranferred everything?
Can I trap the error and send it back to the bat file?

The problem is that ater the incomplete transfer the file is processed as a whole file or a whole set of files.

TRACE SCREEN
CONNECT TOSITE
LCD d:\datawarehouse\datain
CD outgoing
get FILENAME
CLOSE

SFTP Download Error 83ed274c reading from remote file

Client Version: SSH-2.0-WS_FTP-9.01-2007.02.09

However this is the first step in a process flow AND RECIEVES AN ERROR CODE OF 0. The file exists because the process wrote out some of the file out. Then an unzip fires next this is BAD.

I want the process to fail. Any ideas would be greatly appreciated.

ftpscrpt.com -f getic.scp -b
echo *******
echo *******
echo ******* FTP Process Ended With Code %errorlevel% on %date% at %time%
echo *******
echo *******
if not exist d:\oracle\data\filname goto ftperror


Ron Backmann

Post #35828
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 3:51pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.