I have recently installed a new NAS and am trying to create a 'Temp' folder as I had before, basically a folder that is used to move files around during work hours and then deleted every night.
My knowledge of batch files is very limited. I found this on another website but have not managed to get it working. Hopefully someone may be able to explain how I can improve this or why it is not working.
@echo off rd "C:test" /F /Q
Just to make things slightly more difficult, I have a subfolder named 'This Share is Deleted Daily - Do Not Store Important Files'.
I was wondering if it is at all possible to delete all files and sub folders of this folder but keep the above named sub folder?
Any help would be really appreciated.