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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP Errorlevel reporting

Reply to Message Icon

Name: byrnesit
Date: June 13, 2004 at 23:05:27 Pacific
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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


Results for: FTP Errorlevel reporting

ERRORLEVEL not produced by ping www.computing.net/answers/windows-2000/errorlevel-not-produced-by-ping/61261.html

Problems with BulletProof FTP www.computing.net/answers/windows-2000/problems-with-bulletproof-ftp/57749.html

FTP Tracking Software www.computing.net/answers/windows-2000/ftp-tracking-software/49221.html