I was looking for away to use a batch file to properly remove sub folders/files but leave the parent directory. I found this code on
SO:
cd "%USERPROFILE%\Desktop\cache"
rd /s /q .
What does the . after the q mean? I tried it in a batch file without the . and it gave me an error. With the dot, it worked, and gave me and error that the SO post said was supposed to happen(because the directory you are cleaning is use). Is the . a wildcard, sort of like *.* ? So remove all files and folder regardless of names/extension?