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