Window 10 fails to delete the content of the recycle bin with the cmd

Page 2 of 2 FirstFirst 12

  1. Posts : 5,330
    Windows 11 Pro 64-bit
       #11

    The SAGESET key allows you to create a preset of selected checkboxes in cleanmgr.exe. Once this is done, you can launch the preset using the /SAGERUN option. The syntax is as follows:

    Code:
    cleanmgr.exe /SAGESET:number

    Where "number" can be any value from 0 to 65535. The options you select during the SAGESET session will be written to the Registry and stored there for further use.

    The argument /SAGERUN allows the user to launch the preset configured earlier with the /SAGESET:n command. The syntax is as follows:

    Code:
    cleanmgr.exe /SAGERUN:number
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #12

    jamal numan said:
    What I wanted here is one single command line that empty the recycle bin for all derives. The command below sounds not perform this in one go

    C:\windows\system32>/c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
    It's because you have syntax error in command, you have entered it wrong. It is not typed as shown in tutorial I linked to.

    Kari
      My Computer


  3. Posts : 88
    wind 10
    Thread Starter
       #13

    Kari said:
    It's because you have syntax error in command, you have entered it wrong. It is not typed as shown in tutorial I linked to.

    Kari
    My bad. Correcting the code makes it work like a charm. It goes to all the drives one by one and empty their recycle bin
    C:\WINDOWS\system32>cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535


    Window 10 fails to delete the content of the recycle bin with the cmd-clip_908.jpg

    Window 10 fails to delete the content of the recycle bin with the cmd-clip_910.jpg
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:12.
Find Us




Windows 10 Forums