Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Advanced Disk Cleanup - Create Shortcuts Without A Batch File!

04 Nov 2011   #1

Windows 7 Ultimate 64bit
Advanced Disk Cleanup - Create Shortcuts Without A Batch File!

Hello 7,

This is how to create shortcuts for the Advanced Disk Cleanup feature. I keep mine in my Start Menu
Name:  11.jpg
Views: 64
Size:  85.3 KB
These shortcuts do not require batch files or command window, and they execute immediately. Just follow the steps below!

NOTE: You MUST be logged in as an administrator to complete this tutorial.

Advanced System Cleanup: Configure Options Shortcut

1. Right click on the desktop and select New/Shortcut
Name:  1.jpg
Views: 34
Size:  87.2 KB
2. Insert this for the location
C:\Windows\System32\cleanmgr.exe /sagesetup
NOTE: You MUST leave a space between 'cleanmgr.exe' and '/sagesetup' or this shortcut will not work.

3. Press Next

4. Name the shortcut anything you wish

Name:  3.jpg
Views: 37
Size:  40.6 KB

5. Click Finish

You should have a shortcut that looks like this

Name:  4.jpg
Views: 1469
Size:  25.0 KB

6. Right click on the shortcut and select 'Properties'

7. Customize the "hover" text by filling in the 'Comment' field.

Name:  5.jpg
Views: 51
Size:  63.2 KB

8. Click the 'Advanced' button
Name:  7.jpg
Views: 36
Size:  62.9 KB
9. Select the option for 'Run as administrator'

Name:  8.jpg
Views: 31
Size:  33.2 KB

The shortcut is complete. Now when you double click it you will have a options dialog for configuring all of the advanced cleanup features.

Name:  9.jpg
Views: 31
Size:  67.6 KB

Advanced System Cleanup: Run Cleanup Shortcut

To create this shortcut follow the same steps as mentioned above, but change the 'Location' to

C:\Windows\System32\cleanmgr.exe /sagerun
NOTE: You MUST leave a space between 'cleanmgr.exe' and '/sagerun' or this shortcut will not work.

Here is how I configured the 'Properties' for this shortcut
Name:  10.jpg
Views: 34
Size:  61.1 KB
REMEMBER: Change the 'Advanced' setting to 'Run as administrator'

Thats it! I hope some of you find this as useful and convenient as I have!

Happy Travels,

I had to edit this a few times while trying to get my screenshots formatted correctly Sorry about that

My System SpecsSystem Spec
09 Jan 2012   #2

Vista Home Premium 32bit

Would these same shortcuts (and the method to create them) be usable with Vista? Thanks.
My System SpecsSystem Spec
09 Jan 2012   #3

64-bit Windows 10 Pro

Hello Emarell,

Yes, it will work in Vista as well.
My System SpecsSystem Spec

09 Jan 2012   #4

Vista Home Premium 32bit

Thanks! I will mention the Vista article in the blog [ How To Run The Advanced Disk Cleanup Version In Windows ] that directed me to this Windows 7 method.
My System SpecsSystem Spec
16 Jan 2012   #5

Windows 7 Ultimate 64bit

Appologies for not responding earlier... I've been building/repairing a couple Dell desktops in my spare time this last week...

As Brink said, these work as advertised in Vista. Too bad there isn't an option to add a custom "WinApp2.ini"

My System SpecsSystem Spec
17 Oct 2015   #6

Windows 7 Home Premium 64bit SP1

Actually if you do this process and use this line instead it does it all at once

%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
My System SpecsSystem Spec

 Advanced Disk Cleanup - Create Shortcuts Without A Batch File!

Thread Tools

Similar help and support threads
Thread Forum
create a popup reminder using batch file
Hi there, In XP I used 2 batch files to create a popup reminder in a cmd window. I don't want to use a program like task manager as it requires to much input for the type of reminder I want. With these batch files I would run one of them, enter a time, enter a description and that was it. A cmd...
General Discussion
Need help to create batch file for IE with following settings
I am new here and wanted some help. I wanted to know if I can do some internet explorer setting using batch file. Settings would be like this A - Home page - about:blank A.1 - Browsing history - marked on delete browsing history on exit. A.1.1 - Settings - enables radio button (Every time...
Chillout Room
Creating a batch script or use a 3rdpartyprogram to create shortcuts
Hello! I'm having trouble creating a batch script to simply copy a shortcut to the desktop from a program installation, then carry out some tasks. Overall my goals are: Burn a CD that includes a autorun.inf that will load a batch script In the script I want it to activate two self...
General Discussion
Is it possible to create a windows batch file to do this?
I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic...
General Discussion
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
General Discussion
Make shortcuts using a batch file
Is it possible in any way to make shortcuts (.lnk files) using command prompt/batch files without using any 3rd party apps? I did some googling and found this Solutions found on alt.msdos.batch - Creating Shortcuts in NT but cant make anything out of it. Appreciate any comments and help.
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:15.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App