I wrote:
>Pipes (|) existed in 2.0 according to
>my documentation (dosref) so you should be able to use it, otherwise you
>could always use "del *.*<answerY" and have a file with a 'Y' in it called
>answerY.

This is essentially correct, BUT it can not be used in the way I did.
Arachne passes right through without any messages that's true but you can
not use pipes where I used them. The following should work better (the
cache will actually be removed):

@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 ;)
echo Y|if exist %1 del %1
echo Y|if exist %2*.??? del %2*.???
echo Y|if exist %2headers\*.??? del %2headers\*.???

And still with the changes for your langauge... - change Y into the
appropiate one (what would you answer on the question if "del *.*" shoudl
be done).

If we instead make the best sollution (that I can come up with now anyway)
it would be (should work for everyone except some 4DOS users IIRC):

@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
for %%d in (%2*.*) do del %%d
for %%d in (%2headers\*.*) do del %%d

IMHO this should be made an APM and notice about it (and why it's needed)
should be sent out on arachne-announce.

Reply via email to