loninappleton,
Hope the below dissertation helps you!
Disk Cleanup : Extended - Windows 7 Help Forums
From Administrative CMD disk cleanup lowdisk & verlowdisk
First runs and popups appear with checkbox choices
Second runs with minimal prompts
Cleanmgr /lowdisk
Cleanmgr /verylowdisk
You can create a batch script if you wish also
Here's a copies of mine
Copy and paste into notepad, instead of saving as .txt Choose Save as, all, the type the name you wish and add .bat
I prefer to use notepad++
Here's a one click installer from Ninite. No BS and default install
Ninite Notepad++ Installer.exe
@
echo off
Title === Disk Cleanup Extended-LowDisk ===
cls
color 0a
mode 57,7
echo.
echo.
echo Disk Cleanup Extended-LowDisk starting . . .
echo Do not close this window, it will automatically close.
echo Completion will take several minutes.
echo When your computer restarts, it will appear to hang
echo at 100 percent, however, it is still working.
echo Patience please and follow the prompts . . .
%SystemRoot%\System32\Cmd.exe /c Cleanmgr /LOWDISK && shutdown /r /t 0
@
echo off
Title === Disk Cleanup Extended-LowDisk ===
cls
color 0a
mode 57,7
echo.
echo.
echo Disk Cleanup Extended-VeryLowDisk starting . . .
echo Do not close this window, it will automatically close.
echo Completion will take several minutes.
echo When your computer restarts, it may appear to hang
echo at 100 percent, however, it is still working.
echo Patience please and follow the prompts . . .
%SystemRoot%\System32\Cmd.exe /c Cleanmgr /VERYLOWDISK && shutdown /r /t 0
The && shutdown /r /t 0; is after cleanmgr completes && pauses batch script to that point then when cleanmgr computes -> shutdown /restart /wait to shutdown zero
Good site for explanations and examples
SS64 Command line reference
Snick