Computing.Net > Forums > Windows 2000 > FTP Errorlevel reporting

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

FTP Errorlevel reporting

Reply to Message Icon

Original Message
Name: byrnesit
Date: June 13, 2004 at 23:05:27 Pacific
Subject: FTP Errorlevel reporting
OS: Windows 2000
CPU/Ram: 600/256
Comment:

Hi everyone
I am writing a little Batch file that will call a FTP Script to automatically upload a file to a ftp server.

I have tried doing the following:
###REST OF BATCH FILE###

ftp -s:ftp.scp (ftp.scp is the script file)
IF ERRORLEVEL == 1 GOTO ERROR

##OTHER BATCH COMMANDS##

:ERROR
<send me an email - using a dos email sender thing i have>

###rest of batch file###

HOWEVER. if I set it up so there are errors whilst doing the FTP upload (i simply disabled the account on the server, which made it chuck a spaz when trying to log on, thus the rest of the thing didnt work), it doesnt set the errorlevel to 1.

Does anyone know a way I can pull an errorlevel out of FTP??

Thanks
Matt


Report Offensive Message For Removal








Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software