I am using a scheduled task that runs every night to take backup of important files. This task creates a folder in the following format
where DD_MM_YY denotes the date when the backup was taken.
Now everytime this scheduler runs I need to remove the older directory and create a new one with current date. In order to remove the directory I tried the following but it doesn't work.
for %%A in (C:\Backup*) do rmdir /s /q %%A Can somebody please help