I want to delete all files and folders in my C:\temp
except one specific folder (C:\temp\123
) which contains a lot of files and subfolders.
I tried with pushd "c:\temp\123" && rd /s /q "c:\temp"
but it deletes all subfolders and files in c:\temp\123
.
Can any one please help on the above?