Using a batch to clear the cache has its good points and its bad ones.

On the plus side, it works without crashing.  On the minus side, at least
under MS-DOS 6.2 it stops and asks (in teeny tiny letters squeezed into
the upper left corner of the screen) if you really want to del the files.

Here is revised version of SYSTEM\DGI\CLR.BAT that will flush the cache
without stopping to ask permission.  Asterisks indicate which lines I've
changed:

  @echo off
  rem usage: clrcache.bat (cache.idx) (cache path) (TEMP path) (filemask)
  rem I guess those "DOS forever!" freaks among Arachne users will like this ;)
  if exist %1 del %1
* if exist %2*.??? for %%h in (%2*.???) do del %%h
* if exist %2headers\*.htt del %2headers\*.htt
  if exist %3$ROURA$.BAT copy %3$ROURA$.BAT bat.tmp>NUL
* if exist %3*.??? for %%h in (%3*.???) do del %%h
  if exist bat.tmp copy bat.tmp %3$ROURA$.BAT>NUL
  if exist bat.tmp del bat.tmp

--
...This msg brought to you by NEIL PARKS      Beachwood, Ohio
 mailto:[EMAIL PROTECTED]       http://www.en.com/users/neparks/

Reply via email to