My current code to delete all files in a folder older then 2 days is :
forfiles /p "C:\Test" /s /m *.* /c "cmd /c Del /F /Q @path" /d 2
There is one .idf file among all other files. I want to delete all files except the one .idf file. What do I change to get the current code to ignore the file? If it is not possible, any new command will be helpful.