Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] History
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Total Donors
Total:
$14.93
Monthly Goal
$30.00
Difference:
$15.07
50%
DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Whos Been
 
DFG
 coRpSE
 37 secs ago
 lords
 4 hours ago
 Lonestar
 5 hours ago
 Wolf
 6 hours ago
 Apollo074
 6 hours ago
 icefreak
 8 hours ago
 PatPgtips
 14 hours ago
 fire
 17 hours ago
 hossboss
 19 hours ago
 2xTaz
 1 day ago
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [2388] bots stopped!
HeadShotDomain
DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 

Cleaning all your temp files
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index PC & Codeing Talk
View previous topic View next topic
PostPosted: Mon Oct 10, 2016 10:34 pm Reply with quote
coRpSE
Over time, when you download, install, uninstall, update, ect... on your PC, you get temp files that as created. Well, over time, you PC will start to slow down because of all these temp files. Well, a few days ago, i was talking to someone about a batch file that I put together that cleans my computer. Well, they had mentioned CCleaner and I had to mention to them that I have used CCleaner in the past, but it had a really nasty habit of deleting things i told it not to. I have thus reported to them and discovered the problem and fixed it, but before that happened, I created this batch file.

The funny thing is, a few months ago I download CCleaner and ran it and it cleaned my PC as promised, but I decided to run the batch file that I made and low and behold, CCleaner missed some. I am not going to claim that if you create this file and run it, your PC will be super fast, that is not going to happen. I am not also going to say that this is a replacement for CCleaner or any other program like Advanced System Care, because it's not.

But what I will say this, it doesn't hurt to run something that takes 1 min to make and a couple of second to run. I will tell you how to make it because it is VERY simple. You just need to be able to do 1 thing, you need to be able to see the file extensions.

What I mean by that is, if you create a text document on your desktop, (Right click -> New -> Text Document), and you see it on your desktop as something like "New Text Document.txt", (with the .txt which i highlighted), then you're already halfway done. If you can not see that, the do a Google search for "How to show file extensions on Windows * ?", where the * is your Windows version.

Once you can see that, then follow these simple instructions.

  1. Right click on your desktop and create a new text document and save it as CLEANUP.txt
  2. Open it and paste the following code into it;

    Code: [ Select all ]

    @echo off
    del /s /f /q c:\windows\temp\*.*
    rd /s /q c:\windows\temp
    md c:\windows\temp
    del /s /f /q C:\WINDOWS\Prefetch
    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\prefetch
    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

  3. Save the file.
  4. right click on the file and rename it, and change the .txt to .bat and save it.
  5. Now to run it, right click on it and run it as Administrator. The reason we want to do this is sometimes Windows 10 makes temp files permanently for no reason unless you remove them as Administrator, (Don't ask, I don't know why.).


When you save it, Windows will popup saying that changing the file type may cause it not to work, just click okay. Now, once that is done, anytime you want to run it, just double click on it and you will see a cmd window pop up and you will see it clean then close when done. That's it.

I personally run this once a day, before I log off, but that's also because I am working on sites, and downloading and editing and uploading all the time. For most of you, once a month, maybe once every two weeks or twice a year might be suitable for your situation, but again, this is all depending on what you do.

Enjoy...


Expand


 Last edited by coRpSE on Wed Aug 16, 2017 8:30 am; edited 1 time in total

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2430
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Online
Most Played:
This week: 26.4hrs.
Total Played: 1,652hrs.


  
Taking a break from work!
Find all posts by coRpSE

PostPosted: Sat Oct 15, 2016 3:30 pm Reply with quote
Spartacus1968
Thx Corpse!
big grin


Expand

No Life!!!
Clan Leader
Groups No Life!!!
Posts 342
Joined Jul 26, 2012
Status Offline
Gender Male
View user's profile Send Spartacus1968 a private message Find all posts by Spartacus1968

PostPosted: Wed Nov 09, 2016 6:32 pm Reply with quote
coRpSE
No problem.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2430
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Online
Most Played:
This week: 26.4hrs.
Total Played: 1,652hrs.


  
Taking a break from work!
Find all posts by coRpSE

 
PostPosted: Wed Aug 16, 2017 8:36 am Reply with quote
coRpSE
Okay, just updated the instructions a little bit. One of the updates Windows release 2 months ago, and another one recently, put some temp files in permanently. Why, I don't know why. But with the script I give you in the first post, it will delete them if you run the script as Administrator. I have already done it and checked the integrity of my site by going in and typing CMD in my Windows search and right clicking and running Command Prompt App as Administrator. Then, I did run sfc /scannow and everything passed with no issues, and have been running on my PC for a few days with no issues.

So, if you use this little script to clean your PC, Just run it each time as Administrator.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2430
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Online
Most Played:
This week: 26.4hrs.
Total Played: 1,652hrs.


  
Taking a break from work!
Find all posts by coRpSE

Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Page 1 of 1


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme