Sinisterly
[BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Computers (https://sinister.ly/Forum-Computers)
+--- Forum: Antivirus & Protection (https://sinister.ly/Forum-Antivirus-Protection)
+--- Thread: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks (/Thread-BatcH-Clean-your-Browser-history-unused-junk-files-cookies-with-2-clicks)

Pages: 1 2


[BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - Dawnc0re - 08-31-2012

This is not a virus or a harmful object !

Here is the code:

Quote:@echo off
del /s /f /q c:\windows\temp\*.*
rd /s /q c:\windows\temp
md c:\windows\temp
del /s /f /q %temp%\*.*
rd /s /q %temp%
md %temp%
deltree /y c:\windows\tempor~1
deltree /y c:\windows\temp
deltree /y c:\windows\tmp
deltree /y c:\windows\ff*.tmp
deltree /y c:\windows\history
deltree /y c:\windows\cookies
deltree /y c:\windows\recent
deltree /y c:\windows\spool\printers
del c:\WIN386.SWP
cls
Paste this in Notepad and save it as whatever.bat
Remember, it must end with .bat !

After you saved it, run it once, and a cmd will pop-up. After the CMD is gone, all of the above mentioned directories will be cleaned from cookies, junk files, browser history, temp files etc.

By deleting all of these, your PC will be a lil faster. Depends of the amount of cleaned objects.


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - ascwhitehat - 10-15-2012

wow your great nice code thanks for this keep on sharing i learn again:dance:Wink


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - Dawnc0re - 10-18-2012

No problem Smile
Tho, it's nothing special of a code...
Glad i could help.


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - mstore - 10-23-2012

And life is easlier Wink thx for code


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - Deque - 10-24-2012

This only works if you installed Windows in c:
You can make it more portable by determining the path to the windows directory in your program. Read the %SystemRoot% or %WinDir% environment variable to do so.


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - sgtpein08 - 10-27-2012

Thanks, but i will prefer using Ccleaner as it safer ;b Great post btw


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - C0ld Phr34k - 10-28-2012

it doesnt clean googlechrome history D:


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - darkv0id - 10-28-2012

Ccleaner all the way. Free and cleans other things as well.


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - Deque - 10-29-2012

(10-28-2012, 09:57 PM)C0ld Phr34k Wrote: it doesnt clean googlechrome history D:
It is saved in an sqlite database in C:\Users\[USERNAME]\AppData\Local\Google\Chrome\Default for Windows 7 (if you have another OS just tell)
There you can delete *History*, Cookies*, Top Sites* and Visited Links
Add the paths to the batch file and you are done.


RE: [BatcH]Clean your Browser history, unused junk files, cookies... with 2 clicks - diana32 - 12-26-2012

Your code is fast to clean temp data .Nice job. I'm cancel ccleaner because don't really show me the keys registers.He works well with al clean :history,browser ,but compare to another tools that i used is not that good.I'm talking about combofix and windows 7manager.A great tool for uninstall your program that i proved is YU uninstaller.He 's clean even the register voice of the program and have a tool name- hunter, for delete the file that won't delete.