Tuesday, December 28, 1999, 1:27:14 AM, you wrote:

> Hello, The Bat Users!

JT>> Well, my TB doesn't leave temp files, but some other programs do. I've
JT>> been very content after adding these two lines to my c:\autoexec.bat

JT>> deltree /y c:\windows\temp > nul
JT>> md c:\windows\temp

> Better way is
> deltree /y c:\windows\temp\*.*>nul
If  any  of  you are using NT the following batch file will delete all
temp files and directories in temp:

@echo off
pushd %1
del /q *.*
for /f "Tokens=*" %%i in ('dir /b') do rd /s /q "%%i"
popd
:end

To call from a batch file:

call delfiles c:\temp (where delfiles is name of above batch file)



-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

Reply via email to