Hack Forums
[Shell] Advanced Disk Cleanup! (Hidden windows disk cleanup features) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Advanced Disk Cleanup! (Hidden windows disk cleanup features) (/showthread.php?tid=4202295)



Advanced Disk Cleanup! (Hidden windows disk cleanup features) - cdriza - Apr 30, 2014

So, what this does is just kind've cleanup more space than the original. (Its the same program, just some parameters added)

Code
@echo off
title Disk Cleanup v2 (Windows)
cd %SystemRoot%\System32
ping localhost -n 2 >nul
color 0a
echo Disk Cleanup activated.
cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
ping localhost -n 3 >nul
echo You can close this now, unless the disk cleanup has not launched.
pause

If your a scrub and don't know how to use this, follow this simple-step tutorial on how to install/use this.

Step 1. Open notepad

Step 2. Copy and paste the code from the code box.

Step 3. Click File>Save As

Step 4. File Name: diskcleanup.bat

Step 5. Save As Type: All files (*.*)

Step 6. Click Save

Step 7. It should default to wherever you save your documents, desktop, documents, my documents WHATEVER. Double click it and a disk cleanup will pop up after 1-3 seconds.

Step 8. Clean the disk!

Proof that it cleans up more files:

Original:
[Image: 7vyiqtp.png]

Mine:
[Image: RXwlbGL.png]


* - TheNetGlitch - May 1, 2014

Awesome you write advance cleanup in a .bat script never know this is possible, going use it for my company pc's.
Hope don't get permission issue or policy problems.


* - cdriza - May 1, 2014

(May 1, 2014 08:59 AM)TheNetGlitch Wrote:  Awesome you write advance cleanup in a .bat script never know this is possible, going use it for my company pc's.
Hope don't get permission issue or policy problems.

No problem!

(Also, tell me if there are any problems with it i'll fix them)


* - cdriza - May 11, 2014

BUMP
Bumped because this thing is actually useful unlike my "SuperCMD" project lel


* - ShockWav3 - May 15, 2014

Work's Like A Charm Thanks Bud This Came Handy..


* - antrikos - May 16, 2014

It is really advanced for it's file size. 10 lines of code for such a program. Thanks!


* - nuk - May 16, 2014

This is actually very nicely done! Great work OP! Hope to see more cool stuff like this from you :) +3 from me ;)


* - cdriza - May 20, 2014

[Image: 1idTFyh.png]

Because this .bat program is actually useful :D

@everyonewhoposted

Thanks for the nice comments! :P

NEW VERSION! HURRAY! :DDDDDD

New version release! 2.3

.exe version: http://www.mediafire.com/download/w4ekoji11buf2dm/Disk+Cleanup.exe

.bat version: http://www.mediafire.com/download/9xrxbh4z33seull/Disk+Cleanup.bat

Virus scan for both files:

.bat: https://www.virustotal.com/en/file/bb296c03f9146ded3ed672d4b66ed06cd9ce5efb3bbda48f47fcbfa2ae13bcb1/analysis/1400645038/

.exe: https://www.virustotal.com/en/file/d9aa572e049f32a8b2f39200ecb07b0ee6cdfb287430f0473d8a04f4f0555117/analysis/1400645055/

.exe detections:

False postivies, no clue what a "PSW.Generic11.AFJM" is and the "Heuristic.BehavesLike.Win32.Suspicious-BAY.K" gets detected on all my files :>


Code:
Code
@echo off
title Disk Cleanup v2 (Made by: cdriza)
echo Welcome to Cdriza's Disk Cleanup!
ping localhost -n 2 >nul
cls
echo This will successfully clean up any unused or old files.
ping localhost -n 4 >nul
cls
echo If you have payed any money for this program, refund immidietly and notify me of the website/youtube video/whatever you bought it from: [email protected]
ping localhost -n 6 >nul
cls
SET /P ANSWER=Do you want to continue with the cleanup (Y/N)?
if /i {%ANSWER%}=={y} (goto :y)
if /i {%ANSWER%}=={yes} (goto :y)
goto :n
:y
    cd %SystemRoot%\System32
    ping localhost -n 2 >nul
    color 0a
    echo Disk Cleanup activated.
    cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr     /sagerun:65535
    ping localhost -n 3 >nul
    echo You can close this now, unless the disk     cleanup has not launched.
    pause
    goto n
:n
echo Closing...
ping localhost -n 2 >nul
exit



* - cdriza - Jun 3, 2014

BUMP, actually useful program I made, would like people to use it q.q


* - Sajuuk - Jun 3, 2014

(Jun 3, 2014 03:29 PM)cdriza Wrote:  BUMP, actually useful program I made, would like people to use it q.q

This script only takes about ten, no, not even ten, like five minutes to Google, copy the text, and paste the text into a text editor and save as a batch file.


* - annikk.exe - Jun 4, 2014

(Jun 3, 2014 03:29 PM)cdriza Wrote:  BUMP, actually useful program I made, would like people to use it q.q

Link to it in your signature then. That's more socially acceptable than BUMPing..


* - WOLGA - Sep 1, 2014

(Sep 1, 2014 08:37 PM)cdriza Wrote:  Bump, useful program, on the horrifying 4th page of neverland.

YOU"RE FUCKING KIDDING ME!!1!!!

On a side note, to the higher quality members I recognize, does anyone mind if I sift through garbage and BUMp anything of quality?