On Wed, 19 Jul 2000, Bernie wrote:
> Michael wrote:
> >In DR-DOS, del *.* asks for confirmation, while *.??? not. So I got
> >confused :-(
> >
> >Somene please try echo y|del *.* in all versions of DOS - I will try with
> >DR-DOS...
>
> I've (just now) sent you a BATch file that will work as expected, there are
> three errors in the original:
>
> 1. Asks for confirmation
> 2. %3 is the same as %2 (core.exe problem)
No, this is true, if your TEMP or ARACHNETEMP directory is not set...
> 3. Will loop if %3 is changed to actually point to the temp directory
???
I see... so I should do this differently....
> With changes to mime.c and with my modified clr.bat things should work
> better, since others might be interested in it here it is:
>
> @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
> attrib +r %3$roura$.bat
> for %%d in (%3*.*) do del %%d
> attrib -r %3$roura$.bat
>
> Until Michael releases a new version of Arachne (which IMHO should be very
> soon - this is even worse than the APM.EXE problem we had earlier) change
> %3 to %temp% (or perhaps %arachnetemp% if you have it set - I haven't
> tested if that's correct).
Yes, I should release 1.66 very soon, because in addition to this, there
was some security hole detected in all previous versions of Arachne... :(
> Also mime.c should be changed so that core.exe sets the attributes on the
> BATch file - thereby it should work with any DOS version (that's supported,
> >= 3.something).
but attrib is external command, not built in CORE.EXe... this is why I
gave up calling MOVE command some time ago...
I think I will do some for loop, with if not %%d==%3$roura$.bat del %%d
statement, so I can get rid of attrib.
--
http://arachne.cz/
(Arachne WWW browser for DOS+Linux / Webhosting / MP3streaming)