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: Disk Cleanup : Extended

06 Apr 2010   #10
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Hello severedsolo and derekimo, thank you both!


My System SpecsSystem Spec
.
06 Apr 2010   #11
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Quote   Quote: Originally Posted by CarlTR6 View Post
I created the batch file in Notepad and named it clean.bat. The name does not matter; you can name it anything you wish as long as you give it the .bat extension.

Open Notepad. copy and paste the two lines below into Notepad.

cd C:\windows\system32
%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535

Click on File and select Save as...

Type the file name and give it the .bat extension.

Select All files (*.*) and click Save.

Once I saved the file I moved it from the Documents folder to the Windows> System32 folder. The path on my computer is C:\Windows\System32.

To run the batch file and the program, open cmd as an administrator and type "clean" or whatever you named the file (without the quotation marks) at the prompt and hit Enter.

Hello Carl.

I just added your .bat file and it worked like a charm, cheers!
My System SpecsSystem Spec
06 Apr 2010   #12
CarlTR6

Windows 7 Ultimate 32 bit
 
 

Thank you, Sir. I'm glad it worked.
My System SpecsSystem Spec
07 Apr 2010   #13
stew2

 

I find it easier to just use a shortcut:

Utilities.zip


My System SpecsSystem Spec
.

07 Apr 2010   #14
CarlTR6

Windows 7 Ultimate 32 bit
 
 

Quote   Quote: Originally Posted by stew2 View Post
I find it easier to just use a shortcut:

Attachment 65735
Whatever works is good.
My System SpecsSystem Spec
07 Apr 2010   #15
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

I was going to find out about this today after work, it seems to work for me, thanks for reminding me.

Disk Cleanup : Extended-clean.jpgDisk Cleanup : Extended-cleanshortcut.jpg


My System SpecsSystem Spec
07 Apr 2010   #16
DaGooN

Windows 7 64bit Ultimate SP1, VMware Windows 7 64bit Ultimate SP1
 
 

cool, i normaly used this method.

Advanced Disk Cleanup
-Press the Windows + R keys, type cleanmgr /sageset:50
-Select the options you desire. Click OK and close out the window.
-Press the Windows + R keys, type cleanmgr /sagerun:50
(note - there is a space between the r and the /)
My System SpecsSystem Spec
07 Apr 2010   #17
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Quote   Quote: Originally Posted by DaGooN View Post
cool, i normaly used this method.

Advanced Disk Cleanup
-Press the Windows + R keys, type cleanmgr /sageset:50
-Select the options you desire. Click OK and close out the window.
-Press the Windows + R keys, type cleanmgr /sagerun:50
(note - there is a space between the r and the /)

Thanks mate but once you write the .bat file and create the shortcut it's only one click to open from the desk top.
My System SpecsSystem Spec
12 Apr 2010   #18
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Good Work Ted !!

Great suggestion Carl !!
My System SpecsSystem Spec
12 Apr 2010   #19
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Thanks Cap'n!


Yeah, Carls .bat works great as a shortcut from the desktop too.
My System SpecsSystem Spec
Reply

 Disk Cleanup : Extended




Thread Tools




Similar help and support threads
Thread Forum
Disk Cleanup
I understand what defragment does but I’m not clear about disk cleanup. Can someone please explain? And also, please advise me if this is not the most appropriate discussion for this post.
Performance & Maintenance
Disk cleanup questions
I have a few questions about disk clean up. First I run it and check off all of the options including dump and debug files which are both listed at 662 mb. When it's done deleting the files I run it again only to find that the debug and dump files are both still at 662 mb. Is there anything I can...
Performance & Maintenance
Disk Cleanup
Which files can safely be checked for Disk Cleanup? I don't want to delete something that may casue an issue with the system working correctly.
Performance & Maintenance
disk cleanup?
can i check everything when i run Disk Cleanup?
Performance & Maintenance
Disk Cleanup
Suddenly my Disk Cleanup will not start using Disk Cleanup.exe. I now have to go to Start>Run>cleanmgr to get it to start and that won't pin to the Start Menu which is where I want it. Using Windows 7 Home Premium 64bit.
Performance & Maintenance
Extended Disk Cleanup : New Tutorial!
I hope everyone finds it useful. :) https://www.sevenforums.com/tutorials/76383-disk-cleanup-extended.html#post668379
Chillout Room


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 17:52.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App