On 10 Jan 2002, at 19:46, Stephen Lo wrote: > I use the following lines in a batch file to delete all files in a > folder: > > @echo off > Echo Y| del c:\temp\*.* > Nul > > IF folder 'temp' is empty a line "file not found" returns. How > could I eliminate this feedback? > > THank you!! > > SLo All the answers given so far will work, but, IMHO, a far neater solution is as follows: @echo off cd c:\temp for %%l in (*.*) del %%l > nul In this way, if there are no files in the directory, nothing will be done. At Neethling Cape Town Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be those of Sanlam, to whom no liability shall attach whatsoever. PCSOFT maintains many useful files for download visit our download web page at: http://freepctech.com/downloads.shtml