1.

Solve : erase command....ISSUES!?

Answer»

thank u Dias.
but everyone plz just tell me would this work.

code:
cd C:\Temp
erase *.bak
echo All Bak files have been erased.Quote from: macdad- on February 28, 2008, 04:50:49 PM

but everyone plz just tell me would this work.

code:
cd C:\Temp
erase *.bak
echo All Bak files have been erased.
Yes, that should work, but it would also GIVE an error if there were no *.bak files.

You could try this:
Code: [SELECT]if exist C:\Temp\*.bak (del C:\Temp\*.bak&echo All Bak files have been erased) else echo No Bak files to erasethat you everyone.


Discussion

No Comment Found