I have a batch file that I'm using to scan the c:\users folders on a Windows 7 box using a for loop. This works fine, however I am having issues in excluding certain folders.
I need to exclude the AppData folder under the users profile folders. I don't want it to use a exclude file which I have seen in other solutions.
For /R C:\USERS\ %%G IN (*.png) do "C:\program files\sdelete\sdelete.exe\sdelete.exe" -s -p 3 /accepteula "%%G"