I have not run this script, but you are missing the ENDIF that must close the IF exist command.The :EFFACE label appears to be on the previous line. Ie should be:
;-------------
:EFFACE
Other than that it looks ok to me.
cj
------------------
cj's scripts page
cj's User Guide - 14 May 2001
chrismat@ozemail.com.au