Folder Deletion
Posted: 05 Jun 2025 03:32
I have a .bat that runs at Startup. I want to add an extra process that deletes folders in a specific directory. The target folders will have been renamed with something like ".orph" appended at the end.
I have this for starters:
for /d "delims=" %%p in ("C:\Users\) do rmdir "%%p" /s /q
but I don't know how to specify the .orph identifier.
Help greatly appreciated, thank you.
I have this for starters:
for /d "delims=" %%p in ("C:\Users\) do rmdir "%%p" /s /q
but I don't know how to specify the .orph identifier.
Help greatly appreciated, thank you.