I just want to know if there is a problem if I delete the files '%Temp%' race

Hey guys, I just want to know if there is a problem if I delete the files '%Temp%' run! ???

Free disk space
Last updated 18/01/2014
 

Content

  • To see how much space you have used and free
  • To see where the files are too much space
  • Disk Cleanup
  • System restore
  • Fix the basket
  • Fix temporary Internet files
  • Delete files in the system and the folder Temp of Service Profiles
  • Check the size of the swap file
  • Disable the hibernation
  • Compact the Windows databases use various
  • Delete the files updated by the Service Pack
  • Move your Documents
  • Remove saved files created by Photo Gallery
  • Which extends the size of the disk
  • Compress files
  • Turn off the low disk space warnings
  • Boost disk cleanup
 

To see how much space you have used and free

Start - All Programs - Accessories- Click with the right button on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

For the system drive

WMIC volume where (DriveLetter = '% lecteur_systeme %') are legend, capacity, freespace List

For all readers

WMIC volume get/all, freespace, the ability, the legend

If you want to store this info on your desktop

WMIC /append:"%userprofile%\desktop\Free on disk space" volume get Caption, freespace format:htable

To open double click on Free Disk Space on your desk or type

Start "" "%userprofile%\desktop\Free report.HTML of disk space.

Then come back here after cleaning and repeat these commands to see the difference.

If for any reason, the wmic command does not work, use these two commands. Both take a lot of time.

% Lecteur_systeme % - one defrag

or

dir %systemdrive%\*.*/a/s

 
To see where the files are too much space
 
It lists the number of files and the size of the folders on your drive. Each command is a subset, so you can run it better.
 

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
 
 
Then configure the command prompt. Right-click on the tab of the titlebar - Properties - Layout command prompt - and enter 1000 screen buffer size height and 43 (or 50) to Window Dimensions height. Change the color (color tab) and the police (police tab), if you want.
 
To see the size of the folders in Documents, excluding images, video, or music files.
 
for /f "Skip = 2 tokens = 3 ' set doc = A %%A in ('Reg query"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"/v"Personal"")
 
for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "\/"^|findstr/l/v "photos video" ') @echo %j & echo. "
 
To see the size of the folders in the music.
 
for /f "Skip = 2 tokens = 4" %A in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v 'My music' ") set Doc = A %
 
for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."

 
To see the size of the image files.
 
for /f "Skip = 2 tokens = 4" %A in (' Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" "My pictures" /v ") set Doc = A %
 
for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
 
To see the size of the files in the video.
 
for /f "Skip = 2 tokens = 4" %A in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v 'My videos' ") set Doc = A %
 
for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
 
To see the size of the files on the desktop.
 
for /f "Skip = 2 tokens = 3 ' set doc = A %%A in ('Reg query"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"/v"Desktop"")
 
for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."

To see the size of the files in the Windows folder.
 
for /f "usebackq tokens = 2 * delims =" %i IN ("'%windir%' dir /a /s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
 

To see the size of the files in the Program Files folder.
 
for /f "usebackq tokens = 2 * delims =" %i IN ("'%ProgramFiles%' dir /a /s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
 
 

Disk Cleanup
To run Disk Cleanup, normal is to click with the right button on the drive in my computer (Start menu - computer), then Properties - general tab - Disk Cleanup button.
 
 
Another way is menu Start - All Programs - Accessories - System - Disk Cleanup tools.
 
Disk Cleanup can be started from the command line.
 

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

 
To make your primary drive.
 
cleanmgr letter
 
Choose which lead to do.
 
Cleanmgr
 
See the last section of this post to see how to performance of disk cleanup.

 System restore

With disk cleanup displays above the Other Options tab. You can delete all but the last System Restore point and see if that is too much space.

System Restore uses 15% of the space normally. Change click Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type Regedit and navigate to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg

Double click on DiskPercent and click on decimal and change the value to the desired percentage,

You can change the command prompt.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

To see the size of the system restore folder.

You don't normally have access to this folder. You will need to take possession, allow administrators to permission, then the size of the query.

takeown /f "%systemdrive%\System Volume Information" / a r d y
ICACLS "%systemdrive%\System Volume Information" / grant administrators: f, t, c, q
dir "%systemdrive%\System Volume Information" / a/s

To see the current percentage

Reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg" /v DiskPercent

It is in hexadecimal. The numbers are 0-9 and a-f. So 0xf is 15. 0x5 is 5, 0 x 9 is 9, 0xa is 10, 0 x 14 is 20.

To set a different value.

You can use decimal values to set. This affects 10% (in bold in the example and the last item in the line).

Tracking Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg" /v DiskPercent /t REG_DWORD /f /d 10
 
To repair the system restore, file delete and restart the system restore.
  
SC stop vss
takeown /f "%systemdrive%\System Volume Information" / a r d y
ICACLS "%systemdrive%\System Volume Information" / grant administrators: f, t, c, q
e "%systemdrive%\System Volume Information" / q/s
SC start vss

Fix the basket

Sometimes, files get lost in the trash. Remove the storage folders. It will be automatically re-created next time you delete a file or open the Recycle Bin. It will remove the trash and the files it contains for all users.

Empty the trash.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

To see the size of the files in the Recycle Bin

It must have one or no files inside if you work. There should be a directory (folder) by user.

dir % systemdrive%\$RECYCLE. BIN\ *. * /a /s

To reset the trash

e % systemdrive%\$RECYCLE. BIN/s/q

Fix temporary Internet files

Sometimes, files get lost in the temporary internet files folder. Delete the files. It will be automatically recreated the next time download you. It will remove the current user only.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

To see the temporary internet files size empty files folder

RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 8

dir ' %userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\ *.» * ' / a/s.

Then delete.

First close Internet Explorer. Some files may not remove at the moment, they can be deleted later.

"%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files" del /s /q

So to see the new size.

dir ' %userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\ *.» * ' / a/s.

 
To see the size of the cache, type the following
 

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

 
Reg query /v "Settings\5.0\Cache\Content Software" CacheLimit valid
Use the calculator to convert hexadecimal into decimal. Start the Calculator (Start - All Programs - Accessories - calculator) and choose the menu display - scientific, then the menu display - Hex. Enter the value returned above. Menu display - decimal. To convert windows units divide by 1024 for kilobytes, divide by 1024 megabytes.
 
Located between 50 MB and 250 MB. You can use decimal here. The unit is expressed in kilobytes. Here it is 250 megabytes (250 000 x 1024 bytes)
 
Add tracking 'Software Settings\5.0\Cache\Content' v CacheLimit valid /t Reg_DWord /d 250000 f
  

Delete files in the system and the folder Temp of Service Profiles

The system temp folder is only used when no one connects. It is rarely used but never cleaned. Some services have their own temporary folder which is also cleaned.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

To the list

dir c:\windows\temp C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp/a/s

To remove

del C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\*.* C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\*.* c:\windows\temp\*.*/s/f/q

Check the size of the swap file

As a rule generally you want to your swap file slightly larger than the amount of memory that you have. It develops automatically but spread automatically. If you use hungery memory programs as this video editing should be bigger. If too big you can reduce and rush of space can be moved to another drive.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

To see what was your use

WMIC pagefile get List

To see the size of the file on disk

dir /a c:\pagefile.sys

To change the size or change the road see change the size of virtual memory in Start - Help and Support.

 

Disable the hibernation

The file shows up is the same size of installed memory. If this is not the case, turn off the computer in hibernation and save a lot of disk space.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

To see if it is on

If the file will be found. If off the file won't be there.

dir %systemdrive%\hiberfil.sys /a

To turn off

powercfg-h off

Make a u-turn

powercfg-h on

Compact the Windows databases use various

You can compact the various databases that Windows uses. This is the Windows Update, Windows Search, and certificates of security, Windows Mail, Windows Contacts, Windows, Windows Live and Internet Explorer ver 10 applications calendar.

Close Windows Mail and Internet Explorer. Wait a minute for Internet Explorer release locks of sound files.

See how much space taking up type which is below and note the total size (because it scrolls away).

Start - All Programs - Accessories- Click with the right button on command prompt and choose Run As Administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

dir c:\*.edb c:\*.msmessagestore c:\WebCacheV*.dat c:\catdb/a/s

Then at compact

SC stop wuauserv
stop bits SC
SC stop wsearch
SC stop cryptsvc
for c:\ /r %A in (*.edb *.msmessagestore WebCacheV*.dat catdb *.) do esentutl.exe /p "%A" / o
for c:\ /r %A in (*.edb *.msmessagestore WebCacheV*.dat catdb *.) do esentutl.exe /d "%A".
SC start cryptsvc

SC start wsearch

SC start bits
SC start wuauserv

Then to delete some temporary files.

del c:\*.integ.raw c:\TEMPDFRG*.edb/s

To see the new size and compare it to the old size

dir c:\*.edb c:\*.msmessagestore c:\WebCacheV*.dat c:\catdb/a/s

If a program has a file open, you can use this procedure to find out which program.

openfiles/local on

Reset

openfiles/query /v | findstr /i "WebCacheV [0-9] *------catdb \.edb \.msmessagestore .dat".

Delete the files updated by the Service Pack

See how much space taking up type which is below and note the total size (because it scrolls away). Also, note that the total is higher than it actually is.

This will remove the ability to uninstall service packs.

According to the service pack that Windows was provided with you can have both, one or none of these two files.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

dir /a /s c:\Windows\WinSxS

Then type

Vsp1cln.exe
COMPCLN.exe

To see the new size and compare it to the old size

 
c:\windows\WinSxS dir /a /s

Move your Documents

If you have another disk, you can move the documents folder to it.

Click with the right button on your Documents (or pictures, etc.) Office, videos, Contacts,) the tab file - Properties - location - move.

 

Delete the thumbnail and icon Caches

These files can contain thumbnails or icons of files deleted a long time ago. The files will be recreated if necessary.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste). The desktop and the start menu will disappear briefly.

To see the size

dir "% userprofile%\AppData\Local\*.db" "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db" /a

then remove

Taskkill /im explorer.exe/f
attrib - r s h '% userprofile%\AppData\Local\*.db '.


attrib - r s h '% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db '.
del "% userprofile%\AppData\Local\*.db".
del "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db".
Explorer

to check the new size

dir "% userprofile%\AppData\Local\*.db" "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db" /a

 

Remove saved files created by Photo Gallery

 

Photo Gallery Windows makes a copy of any file that you are editing. Click Start - All Programs - Accessories - (or press the Windows key + R). Type

Images of the hull: original

Delete the ones you don't want.

Which extends the size of the disk

If all the space on the disk has not all been used it is possible to extend your drive.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

DiskPart

then type

Select the c volume:

Then type to see in size

the list volume

then (it will work if possible or not as appropriate)

extend

type to display the new size

the list volume

then type exit

output

If you want advice on the extension of the partition type the following and paste the result back

DiskPart

list disk

the list volume

Select disk 0

partition from the list

Select disk 1

partition from the list

output

To copy the final text right click in the window - Mark , then select the text and press enter.
 

Compress files

There are two ways to compress files in windows. Zip files and built-in file compression. It's built-in file compression. For more information on compression type zip in Start - Help and Support .

Photos, music and video are already compressed. They can get larger if Windows tries to compress it any further. Also usually a bad idea to compress system files.

If you have files of worksheet they can very well be compressed. If you have files, installation files, they can also be good candidates. Web pages are also good candidates.

In Windows Explorer, blue file names means Tablet (it is the file system compression not aka zip files compressed files). Green filename means Encrypted.

To disable file names colored, in Explorer - Tools menu (Alt + T)- display tab and then clear the check box for Show encrypted or compressed NTFS in color .

Windows compression, encryption and security to work for the most part by applying attributes to a folder and the files in the folder inherit the folder.

If you have all the files appropriate for compression, find them in solution, made Explorer right click - Properties - general -Advanced button tab - Compress contents to save disk space. Choose to apply to all files and folders when asked.

To use a command line to compress the files in the Favorites folder.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

compact/c /s:"%userprofile%\Favorites." *

Put in Favorites to compress files added

compact/c /s:"%userprofile%\Favorites.

To view the details of the compression of the Favorites folder

Compact '% userprofile%\Favorites\*.* '.

 

 

Turn off the low disk space warnings

To disable the function to display the disk low space warnings.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" v "NoLowDiskSpaceChecks" /t REG_DWORD /d 1 f

gpupdate/force

 

Boost disk cleanup

  • Operation of disk cleanup
  • Schedule disk cleanup
  • Creating custom cleaners

To see a list of products of cleaning disk cleanup.

Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

@echo. & @echo list of cleaners&@echo = & FOR /F "usebackq tokens = 8 delims =-' %i IN ('reg query 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches'") @echo %i


 List of cleaners
 ================
 Active Setup Temp Folders
 Content Indexer Cleaner
 Downloaded Program Files
 Hibernation File
 Internet Cache Files
 Memory Dump Files
 Microsoft_Event_Reporting_2.0_Temp_Files
 Offline Pages Files
 Old ChkDsk Files
 Previous Installations
 Recycle Bin
 Setup Log Files
 System error memory dump files
 System error minidump files
 Temporary Files
 Temporary Setup Files
 Temporary Sync Files
 Thumbnail Cache
 Upgrade Discarded Files
 Windows Error Reporting Archive Files
 Windows Error Reporting Queue Files
 Windows Error Reporting System Archive Files
 Windows Error Reporting System Queue Files
 WLX Thumbnail Cache
 

Tags: Windows

Similar Questions

Maybe you are looking for

  • Cover of cracking R60

    The screen on my R60 cover has a small crack near the hinges, how much would a new lenovo cost cover? Thank you

  • How can I configure my computer laptop hp g61 to the original settings, I already backed up

    as above

  • TV does not turn on

    I just look something up in sitting position with the tv on, the Xbox game, then cut the video and audio. The red light indicating the power was still on. Now it just blinks 4 times on and on. I looked at this top and I saw it was a circuit problem a

  • My fan is running all the time...

    I have a Dell XPS 15.6 Windows 7 64 bit. It is about 3 weeks old. My laptop was on my firm stand and the fan came. When I opened it, it stays on. Also when I went to type there is a tone that did not previously exist. The fan stays on while it is ope

  • Uninstall McAfee

    I need to see a documenta and was told to download Adobe, Macafee snuck with Adobe. I really want to either. I have a HP with Windows 8 touch screen, and the "start" screen has nothing woiuld I want to uninstall a program. This is implemented, as a s