I am trying to delete a bunch of directories from the command line in Windows. I am getting syntax not correct error. Al of the folders I want to delete begin with IMG.
The command I am running is RD img* /s /q.
If I put in the full folder name, it works, but I need to run this from a batch file and the folder names are always different at the end.