wasn't sure where to list this under...
do we have any programmer on here that can do batch scripts.. I've got to create a automated script to do ftp and confirm it worked, I also need to report different failures.
no errorlevel are returned from ftp batch srcipts, so far I've output the ftp to a file and done a batch script to look into the file for errors but this dosen't work
any ideas or suggestions.
I've worked on something similar before with FTP, but not with batch files. I developed an application instead (in .NET) because it's easier to report successful downloads/uploads and has much better error handling - you might find this approach is best. The application can easily be scheduled or converted into a Windows Service if it has to run often.
2004 A3 Sportback 2.0TDI SE, RNS-E Sat Nav SW0650 TMC, 17" Star Alloys, Xenons, DIS, Rear Mats & Sunblind, Alu trim, Ebony Black pearlescent
2006 Honda Accord EX i-CTDI, Arctic Blue, Leather, Sat Nav, XCarLink
thanks for the reply, all sorted using batch.. old I know but don't have the time to learn different scripting
just in case anyone interested:
set finderr="not connected"
for /f "tokens=*" %%A in ('find "%finderr%" log.txt') do set chk=%%A
echo %chk%|find /i "%finderr%">nul
if %errorlevel%==1 echo: CONNECTED
if %errorlevel%==0 echo: NO CONNECTED