I'm trying to write a batch file that would loop through a directory and delete any folder that is called "SAMPLE". Here is my code so far, any help would be greatly appreciated!
@echo off title WAIT !
IF NOT EXIST "%sourceDir%" (echo.Could not find %sourceDir%
:: delete files For /F "Delims=" %%! in ('Dir "%sourceDir%\") do &
@rd "%%!" /s /q "%sourcedir%\ * \SAMPLE"