Batch file won't delete contents of a folder?

Try using wildcards and the s switch on del : del /q /s /f "%userprofile%\My Documents\Downloads but this will probably leave directories inside intact, but empty. Another option would be the quite explicit: for /d /r "%userprofile%\My Documents\Downloads" %%x in (*) do rd /s /q "%%x" for /r "%userprofile%\My Documents\Downloads" %%x in (*) do del /f "%%x.

Try using wildcards and the /s switch on del: del /q /s /f "%userprofile%\My Documents\Downloads\*" but this will probably leave directories inside intact, but empty. Another option would be the quite explicit: for /d /r "%userprofile%\My Documents\Downloads" %%x in (*) do rd /s /q "%%x" for /r "%userprofile%\My Documents\Downloads" %%x in (*) do del /f "%%x.

It's the path to the current user's profile. Similarly you can use just %temp% for the other directory ... – Joey Aug 9 at 9:33 I tried del /q /s /f "%userprofile%\My Documents\Downloads*" and that didn't work. I'll try the other method you showed.

– carstorm Aug 9 at 9:35 The for /d /r "%userprofile%\My Documents\Downloads" %%x in (*) do rd /s /q "%%x" for /r "%userprofile%\My Documents\Downloads" %%x in (*) do del /f "%%x" worked to do what I wanted however I don't understand it all. Good thing for the /? That I can use.

– carstorm Aug 9 at 9:53.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions