I'm having this batch script that's supposed to several things:
1. Check a directory for *.tbd (this is where the users put their files)
2. If *.tbd exist then continue with the rest of the script (as this script will run as a scheduled event every 20 or 30 mins or so)
3. Move the file to a certain folder
4. Here I'm using pgp to sign and encrypt the file
5. When pgp is done with its encryption etc the ftp session will commence
6. Im using this command: ftp -s:ftp.script IP.IP.IP.IP >ftp.log
7. Up to here im home safe... So now i have made an attempt to send the file via ftp to a distant location and also getting it written in my log file. So far, no worries. Next step is where could use some help.
So, to the question:
How am I able to scan the ftp.log file for a text string such as "226 File received ok." in order to know that the transfer succeeded? The log file always display that text string once the ftp been successful. What im looking for is something like:
8. Does that text string called "226 File received ok." exist in ftp.log? then goto :JOY if not go to :SAD
:JOY
Send_OK_email.vbs
continue with script, move files etc....
:SAD
Send_email_to_admin.vbs
end script etc.
Im wrestling with the FIND command to be used in an IF ELSE session. Is this possible or am i completely lost? (prolly the latter...

Would be grateful for any input!
Regards,
zukizuki