Just use clear screen as the last command ei @echo off Echo Y| del c:\temp\*.* > Nul cls
or use the more powerful deltree command instead of del. You don't have to use cls at the end but I do anyway. ei @echo off deltree /y c:\temp\*.* > Nul cls hth vic http://groups.yahoo.com/group/WinTips-Tricks Inkjet replacement cartridges for HP, Epson, Canon, Lexmark, Compaq, and more. Best online sources and lowest prices. http://www.personal-computer-tutor.com/printersupplies.htm ----- Original Message ----- From: Stephen Lo To: PCWorks Sent: Thursday, January 10, 2002 10:48 PM Subject: PCWorks: Batch file question 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 'temp' is an empty folder a line "file not found" returns. How could I eliminate this feedback? THank you!! ============= PCWorks Mailing List ================= Don't see your post? Check our posting guidelines & make sure you've followed proper posting procedures, http://pcworkers.com/rules.htm Contact list owner <[EMAIL PROTECTED]> Unsubscribing and other changes: http://pcworkers.com =====================================================
