----- Original Message -----
From: "Stephen Lo" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, January 10, 2002 10:46 PM
Subject: [PCSOFT] Questiion in MS DOS batch file
> 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
Try this:
@echo off
rem >c:\temp\tmp.$$$
Echo Y| del c:\temp\*.* > Nul
The "rem" will guarantee at least one file in the directory.
Winston Pike
PCSOFT's List Owner's:
Bob Wright<[log in to unmask]>
Drew Dunn<[log in to unmask]>
|