By default Microsoft Windows will not prompt a user or give a user a prompt or warning when deleting files on a computer using the del command. However, when attempting to delete a directory using the deltree or rmdir command on a directory that is not empty you will receive a warning and/or error message about deleting the directory.
To suppress the prompting use the deltree command and add the tag /y. Here is an example of how the whole command would look, deltree c:windowstemp*.* /y However, this does not work in all versions of Windows and or DOS.
If this command does not work we would recommend that you create a batch file with the below command in the batch file.
echo y | del %1*.*
Once created, you can type the name of the batch file then the name of the directory that you wish to delete.
Answered by
Arzo
at
May 21, 2010 02:42 AM