@echo off
@echo killjet.btm get rid of temp Jet files in entire com\mindprod tree.  2007-05-01
rem kill all rdf bod obj and sym directories recursively in the com\mindprod tree
rem e.g. com\mindprod\converter\bod\*.*
rem      com\mindprod\converter\obj\*.*
rem      com\mindprod\converter\sym\*.*
rem      com\mindprod\major\minor\bod\*.*
echo off
E:
cd \com\mindprod

rem /A:d means only examine directories
for /A:d %i in (*.*) do (

rem display subdir in tree we are working on
echo %i

rem /E suppress error messages
rem /F means force delete killing read/only, system files etc.
rem /S means subdirectories too, recursive
rem /X mean remove empty subdirectories
rem /Y mean automatically answer Yes to prompt about deleting ok.
rem the trailing \ means I want only a directory name.
if exist %i\jetpdb\ del /FSEXY %i\jetpdb\
if exist %i\rdf\ del /FSEXY %i\rdf\
if exist %i\bod\ del /FSEXY %i\bod\
if exist %i\obj\ del /FSEXY %i\obj\
if exist %i\sym\ del /FSEXY %i\sym\
rem cwd is E:\com\mindprod %i is e.g. compactor
if exist %i\%i.exe del /FE  %i\%i.exe
)

rem regenerate csv.zip lost in stompc, so can regenerate all Jets.
E:
cd E:\com\mindprod\csv
call ant zip
cd E:\com\mindprod\stomp
call ant zip

rem don't run stompc yet, needs untouch.exe
rem -30-