I am making a batch script and part of the script is trying to remove a directory and all of its sub-directories. I am getting an intermittent error about a sub-directory not be
Im my case i just moved the folder to root directory like so.
move c:\
And then ran the command to remove the directory
rmdir c:\ /s /q