Delete folder via MS-DOS command

Solved
~Slash~ Posted messages 128 Registration date   Status Membre Last intervention   -  
maxcol Posted messages 7 Status Membre -
Hello,

do you know how to delete a folder (containing files (audio, video, text, spreadsheet, etc...)) via a MS-DOS command, basically with a batch file?
I know "rmdir "C:\....\...\"" but it refuses to delete the folder because it contains files.
I know "del "C:\...\...\"" but it asks the user for confirmation, which is too slow.
So to summarize the question: a MS-DOS command that deletes folders containing files without confirmation.

Thank you for your help.
Configuration: Windows Vista/Windows XP Firefox 3.0.1

9 réponses

~Slash~ Posted messages 128 Registration date   Status Membre Last intervention   33
 
It's all good, I found it. For those who are looking, you need to do:
rmdir "C:\...\..." /S/Q

this deletes all the files inside the folder, without deleting the folder itself.

@+++
25
NOK980
 
Could you remind me the content of your patch for planning the deletion of files from several directories?

Thank you.
0
Dragon_paisible
 
WARNING that the /S implies the deletion of the parent folder.
1
Komche
 
Thank you, this answer helped me a lot.
0
maxcol Posted messages 7 Status Membre
 
Super, thank you very much, it works. Remember to run the DOS as an admin too.
0