home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- CLS
- IF %1. == ?. GOTO NOBELL
- IF %1. == . GOTO CONTINUE
- IF EXIST %1\*.* GOTO CONTINUE
- GOTO err
- :CONTINUE
- CLS
- ECHO ═ DO NOT RUN THIS ROUTINE IF ANYONE ELSE IS USING THE SBT SYSTEM ═
- ECHO ═ YOU COULD DELETE TEMPORARY FILES THEY ARE USING AT THIS MOMENT ═
- ECHO
- :NOBELL
- ECHO * This procedure will delete temporary index and data files which
- IF %1. == . GOTO currmsg
- ECHO were created in %1\ by SBT programs.
- GOTO skip
- :CURRMSG
- ECHO were created in the current directory by SBT programs.
- :SKIP
- ECHO .
- ECHO * These files have names starting with a zero, with extensions of
- ECHO DBF and/or NDX.
- ECHO .
- ECHO * These files are normally deleted automatically by the SBT programs
- ECHO which create them, but will not be deleted if you have a power
- ECHO failure or computer freeze-up problem.
- ECHO .
- ECHO * If you have experienced any equipment or system problems recently
- ECHO you might want to keep these files until the system manager is sure
- ECHO that the data in these temporary files is of no use in reconstructing
- ECHO lost information.
- IF %1. == ?. GOTO DOC
- ECHO .
- ECHO .
- ECHO .
- ECHO NOTE:
- ECHO If you do not want to delete these files, type ^C (Hold down the 'CTRL'
- ECHO key and press the letter C). Answer 'Y' to terminate. Otherwise
- PAUSE
- CLS
- ECHO .
- ECHO .
- ECHO .
- IF %1. == . GOTO CURRENT
- IF EXIST %1\*.* GOTO ok
- :OK
- ECHO
- ECHO ***** Deleting any SBT temporary files in %1\ *****
- IF EXIST %1\0*.dbf del %1\0*.dbf
- IF EXIST %1\0*.ndx del %1\0*.ndx
- ECHO .
- ECHO .
- ECHO .
- ECHO .
- ECHO ***** Temporary files deleted from %1\ *****
- GOTO END
- :CURRENT
- ECHO ***** Deleting any SBT temporary files in current directory *****
- IF EXIST 0*.DBF DEL 0*.DBF
- IF EXIST 0*.NDX DEL 0*.NDX
- ECHO .
- ECHO .
- ECHO .
- ECHO .
- ECHO ***** Any temporary files deleted from current directory *****
- GOTO END
- :ERR
- ECHO
- ECHO You have entered an nonexistant or empty directory...
- ECHO .
- :DOC
- ECHO .
- ECHO The correct format for is: DELTEMP {Path}
- ECHO .
- ECHO e.g. DELTEMP C:\SBT\DATA (No backslash at end)
- ECHO .
- ECHO If you omit the path, DELTEMP will default to the current directory.
- IF %1. == ?. GOTO END
- ECHO .
- ECHO To get help, enter DELTEMP ?
- :END