Tuesday 12 June 2012

How to free disk space, delete unnecessary files [Part 2]

As configured in the file. Htaccess Apache server, the parameters Expires and Cache-Control for cacheable pages and get more upload speed and quickness. Reduce and minimize HTTP requests. Raising the performance of a website and reduce the bandwidth needed.
So many are the number of temporary files that are generated constantly in the normal operation of Windows, so if we make a systematic cleaning, we will see in a short time garbage flooded our computer disks that fragment and slow down system performance. 
To free up space disk and remove unnecessary files, Windows Cleanup tool includes the disk space that you can start it using the system interface or by command line.
Using Cleanup
To open the graphical interface, you can use two methods: 
-A button located on the Properties tab of the disk drives, hard drives ie. 
, Writing in the box or the command Home Run the command: CLEANMGR and press the ENTER key. 
In both cases a window will be displayed for the user to decide what type of files to delete. Only shows the file types that Windows detected in a short preliminary analysis, it is possible to eliminate. 
lot of users want to skip this step, ie avoid being marked boxes each time you need to be cleaned. 
The solution in this case is to use the command CLEANMGR.
As free space from the command line
CLEANMGR works through the command line, but do not fear that is simple to implement, requires no advanced knowledge. It has two main options. 
The first: sageset to create and save user preferences, specifying the type of files to delete the configuration thus created is stored using a number. 
The second option: sagerun can run the tool using a previously saved configuration . 
It is important to know that you can create and save different configurations for use on different occasions.
The syntax to execute the command CLEANMGR is: 
CLEANMGR / D unit: 
CLEANMGR / sageset: X Sets options and stores them in memory. 
CLEANMGR / sagerun: X Run cleanmgr with the saved settings. 
X can be any number in the range of 1 to 65535.
Use the command CLEANMGR, step by step method
• Type or paste in the box Start or Run the following: CLEANMGR / sageset: X, replace the letter X for any number in the interval and press the ENTER key. 
• window opens where you can choose the options assigned to X so that was defined in the above command, check the boxes you want and press the ENTER key. 
• To free up space just introduced into the Start or Run box: cleanmgr / sagerun: X, replace X with the number that corresponds to the profile created and press the ENTER key. 
Repeat the first step as often as necessary to create different profiles using numbers and options. 
For example, you can create a profile to make room daily, one to be cleaned regularly once a week, another for use monthly, etc.. this varies according to user needs and tasks in your computer.
Use all possible options with Cleanup
As explained above all the options never available, Windows only shows that the system deems necessary, according to its analysis. 
This brings the disadvantage that we must be regularly creating new combinations.
For example, after having invested our time created various combinations, use CHKDSK Check, check and repair hard drives with CHKDSK, it will create temporary files in the folders FOUND.XXX, running CLEANMGR / sagerun: X these files will be ignored. 
We have of all possible options, this requires editing the Windows registry key which stores the system preferences can be done manually or run a REG file that will make it easier.
REG file contents
Before adding to record the REG file you can verify that all the options it contains are for your convenience. 
To test it you can edit it with Notepad (drag the REG over Notepad), also Notepad + + or any other plain text editor . 
Each line of code containing a different option to delete files is preceded by a line is a comment (starts with the ";") that clearly explains that is the option that follows. 
to disable or not use an option just substitute the dword value 2 for a number 1.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches]
; Removes temp files. Tmp created on installation of programs. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Active Setup Temp Folders] 
"StateFlags0064" = dword: 00000002
; Deletes downloaded files for installation 
Program Files] 
"StateFlags0064" = dword: 00000002
; Delete temporary internet files stored on your hard disk. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Internet Cache Files] 
"StateFlags0064" = dword: 00000002
; Removes junk files created by Windows extension. Dmp 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Memory Dump Files] 
"StateFlags0064" = dword: 00000002
; Removes downloaded for viewing offline pages offline. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Offline Pages Files] 
"StateFlags0064" = dword: 0000
; Deletes folders that contain formatted FOUND.XXX clustres lost 
, after performing a repair disk with CHKDSK. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Old ChkDsk Files] 
"StateFlags0064" = dword: 00000002
; Removes residue from previous installations of Windows. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Previous Installations] 
"StateFlags0064" = dword: 00000002
; Deletes files from the Trash 
Bin] 
"StateFlags0064" = dword: 00000002
; Remove logs or log files stored in the Windows folder. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Setup Log Files] 
"StateFlags0064" = dword: 00000002
; Remove files. Dmp with information about errors that occur in Windows. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ System error memory dump files] 
"StateFlags0064" = dword: 00000002
; Remove files. Dmp with info
; Stored in the folder 
Error minidump files] 
"StateFlags0064" = dword: 00000002
; Removes temp files found in the% TEMP% 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Temporary Files] 
"StateFlags0064" = dword: 00000002
; Removes temporary files created by installer 
Setup Files] 
"StateFlags0064" = dword: 00000002
, Is deleted cache views 
Cache] 
"StateFlags0064" = dword: 00000002
; Delete files disposed of Windows updates. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Upgrade Discarded Files] 
"StateFlags0064" = dword: 00000002
; Deletes files from user error reports today. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Windows Error Reporting Archive Files] 
"StateFlags0064" = dword: 00000002
; Delete report files of the current user error 
Error Reporting Queue Files] 
"StateFlags0064" = dword: 00000002
; Eliminates error report files of all users. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Windows Error Reporting System Archive Files] 
"StateFlags0064" = dword: 00000002
; Delete files pending error reporting to all users. 
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Windows Error Reporting System Queue Files] 
"StateFlags0064" = dword: 00000002
; Delete files logs and records 
Upgrade Log Files] 
"StateFlags0064" = dword: 00000002 
Adding the registry key will be possible to run the command: cleanmgr / sagerun: 64, automatically, without prompting will be used for Cleanup the following options. 
"are deleted temporary files created during the installation MSDOWNLD.TMP of programs. 
"downloaded files are deleted several programs for installation. 
"are deleted temporary internet files stored on your hard drive. 
"Eliminate junk files stored in the Windows directory extension. dmp 
"downloaded pages are removed to see offline offline. 
"folders are deleted formatted lost clusters containing FOUND.XXX after a repair disk with the CHKDSK command. 
"if there are deleted residues from previous installations of Windows. 
"All downloaded files Recycle Bin. 
"Deletes all logs or log files setup *. log | setup *. old | setuplog.txt | Winnt32.log stored in the Windows folder. 
"files are deleted. dmp errors occurred with information stored in the Windows folder. 
"files are deleted. dmp with information about blue screen errors stored in the Windows \ Minidump. 
"delete temporary files are found in the% TEMP% 
in Windows 7 environment variable% TEMP% refers to : 
C: \ Users \ Username \ AppData \ Local \ Temp 
In Windows XP the location is: 
C: \ Documents and Settings \ Username \ Local Settings \ Temp 
"are deleted temporary files created by Windows Installer. 
"It removes the view cache thumbnails. 
The cache thumbnails saved to disk files needed for rapid charging content displayed by choosing the medium or large icons view, on any folder containing images and videos, if you delete will be created again as to open each folder in succession. 
"discarded files are deleted from Windows updates. 
"files are deleted user error reports now located in the folder: 
% USERPROFILE% \ AppData \ Local \ Microsoft \ Windows \ WER \ ReportArchive 
"It delete files from user error reports now pending, located in the folder: 
% USERPROFILE% \ AppData \ Local \ Microsoft \ Windows \ WER \ ReportQueue 
"Eliminate error report files of all users located in the folder: 
% ALLUSERSPROFILE % \ Microsoft \ Windows \ WER \ ReportArchive 
"files are deleted pending error reports for all users located in the folder: 
% ALLUSERSPROFILE% \ Microsoft \ Windows \ WER \ ReportQueue 
"files are deleted logs and records kept of Windows updates .
Finally, to free up disk space with all the options available beam the following: 
Write or introduced into the Start or Run box CLEANMGR / sagerun: 64 and press the Enter key.
Other methods to start cleanmgr.exe
To start cleanmgr with the above options can also do it in other ways.
1 - Create a shortcut that allows you run the above command for this: 
Give a right click with your mouse on the desktop or another directory in the menu that appears choose "New Shortcut" in the window that appears: " Enter the location of the item "copy and paste: CLEANMGR / sagerun: 64, click Next and Finish to exit the wizard.
2 - Create a batch file for that do this: 
Create a new text file with Notepad and type or paste in: @ echo off
echo "Freeing up disk space on all drives" 
wait ...... miss 
Cleanmgr.exe / sagerun: 64
Close the file and save the changes. 
Rename the file created: limpiar.cmd, make sure the file extension be. cmd and no. txt.
As completely eliminate the temporary files.
Deleting temporary files Cleanup, by default only be erased with more than 7 days in the system. To change this behavior of Windows is necessary to access the following key 
Files 
You'll find the value value "LastAccess" that is what defines this behavior, its default value is 7, but you can modify and set a lower value as 2, 3 or 1 according to your convenience.
As you run the Cleanup every system startup.
You can use a batch file as created above to start automatically every time you start the system, so that you only need to copy or move it to the startup folder. 
The Startup folder can be found in the path: 
"C: \ Users \ Username \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs ", you can also access the Startup folder in a simple Start typing or pasting the following: shell: startup and pressing Enter.
How to delete temporary files in Internet Explorer.
Commands to run free temporary internet files if you use Internet Explorer. To run you can enter them directly into the box of the Run command (Windows key + R) and press Enter. 
To use them introducing them in the table should be preceded Start the command "cmd / c start"
Delete History = RunDll32.exe inetcpl.cpl, ClearMyTracksByProcess 1
= Delete Cookies RunDll32.exe inetcpl.cpl, ClearMyTracksByProcess 2
= Delete Temporary Files RunDll32.exe inetcpl.cpl, ClearMyTracksByProcess 4
Delete Temporary Files including offline favorites = RunDll32.exe inetcpl.cpl , ClearMyTracksByProcess 8
= Delete Form Data RunDll32.exe inetcpl.cpl, ClearMyTracksByProcess 16
= Delete Passwords RunDll32.exe inetcpl.cpl, 32 ClearMyTracksByProcess
phishing filter Delete = RunDll32.exe inetcpl.cpl, ClearMyTracksByProcess 64
= Delete All RunDll32.exe InetCpl . cpl, 255 ClearMyTracksByProcess
Clear all more deeply including plugins installed = RunDll32.exe inetcpl.cpl, 4351 ClearMyTracksByProcess
Run the above commands with RunDll32.exe, are not completely effective in Windows 7, this is because Internet Explorer uses two different cache folders used by the security mode used in the browser.
How to make a general cleaning of the system in Windows.
Every so often you can do a general cleaning in your system so that the first thing to do is identify all the directories that store temporary files on your system and see if cleaning the old tools have been effective in them, if not so removed its contents manually. 
For that creates a batch with the following code or download the link below and run it you create a list in a text file called "stored temporales.txt Directories" in the directory where you run it with a list of all folders that contain temporary files on your system disk.
@ Echo off
dir c: \ temp * / a: D / s / b> "Directories that store temporales.txt" 
dir c: \ * Temporary * / a: D / s / b >> "Directories that store temporales.txt"
Clean files Prefetching
You can also access from time to time to the next folder and delete its contents: 
"C: \ Windows \ Prefetch" in the next system boot Windows will restore the necessary and create a new cache according to the applications you are currently using.

1 comments:

Unknown said...

that was nice, thanks for sharing, although editing all those registry entries is a bit confusing! BTW, I also have a blog and a web directory, would you like to exchange links? let me know on emily.kovacs14@mail.com

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes