I want to know if there's a way to search for and delete multiple directories (assuming they all have a similiar name). I've already handled deleting a directory if it's got files/folders in.
For example, suppose that there was 5 directories, with the following name formats:
If they were files (and if it was command prompt), you probably could type 'del backup*' to delete them all, but as far as I know there is no such method for directories.
Basically, the system would need to search for all folders that start with the name backup_ (including the underscore) and delete them.
Any help would be appreciated