Windows disk cleanup DOS command

Hi,
I’m writing a batch file that runs defrag, backups and I want to add disk cleanup but I’m struggling to find a DOS command to get it running.

If I copy the run command after adding it to windows shedular, I only get the prompt box with a selection of cleanup tasks to undertake.

Many thanks in advance - Richard

This works for me:


C:\\Windows\\System32\\cleanmgr.exe /dc /sagerun: 1

Thanks Ben, works at treat :slight_smile: