I want to remove all files from a folder structure, so I'm left with an empty folder structure.
Can this be achieved in either batch or VBScript scripting?
I have tried a very basic batch command, but this required the user to allow the deletion of each file. This wasn't a suitable solution as there are many hundreds of files and this will increase massively over time.
What can you suggest?
rd /s /q "c:\folder awill perform a recursive delete on all files and folders withinFolder A– Ramhound Apr 15 '14 at 12:47ls -Recurse *.docx | rm. – Kellen Stuart Oct 12 '16 at 20:34