Hello, I need from the command line, delete all files and folders from the folder, leaving the folder untouched.
I tried del and RD but it does not go too far.
I tried del and RD but it does not go too far.
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamrd /s e:\test
dt1 wrote:Properly:
rd /s e:\test
This approach will delete all contents of the e: \ test (including subfolders) and the folder itself. Then you can create it again - will not this solution be better than deleting everything separately? Del will delete files, so each subfolder seems to have to be replaced with a name to be deleted.