Say, there is a variable called %pathtofolder%, as it makes it clear it is a full path of a folder.

I want to delete every single file and subfolder in this directory, but not the directory itself.

But, there might be an error like ‘this file/folder is already in use’… when that happens, it should just continue and skip that file/folder.

Is there some command for this?

15 Answers
15

Leave a Reply

Your email address will not be published. Required fields are marked *