So, friends, now you will find out where the Temp folder is. In fact, there can be up to five such directories on a computer or laptop. But the main work falls on those that are located in some area of ​​​​the operating system and according to the location of the user documentation. That is, these are the following paths:

  1. C:\Windows\Temp

Almost every PC user has a question: why is the Temp folder needed and what functions does it perform?

Here local disk Take C by default, since the operating system is installed on it as standard. You may have it installed on another drive. The same applies to the second point, where the directory is called “Username”: you need to write the name that you have.

If we have figured out the location of our folder, then what about its purpose? What is stored in the Temp folder? So, Temp contains temporary files from various processes on the computer. The simplest example is installing any software. That is, when installing an application, temporary files and documents are created on the system that are needed for correct installation. Or for some utilities to work: a set of temporary files is also created. Sometimes these documents accumulate and do not clear themselves. Therefore, users are advised to periodically clean this area to ensure the best operating system performance.

Many users are often interested in the following question: is it possible to delete a place like Temp completely? Of course, under no circumstances! This is the system path that is needed for proper operation OS. And if you don’t want additional problems and adventures on your own head, then it’s better not to touch anything. For more serious questions, it is better to contact specialists.

How to clear temporary documents

So, from the above we have already understood that it cannot be deleted. Then how to free up the space that this directory occupies. So let's now discuss this question: how to clean the Temp folder?

  1. First, you should scan your system for malicious codes, that is, viruses. This is done because often a simple virus can be stored in this path and location after some programs have run. Therefore, we scan the computer or laptop with an anti-virus utility, clean and remove viruses (if there are any, of course) and reboot the device. Additionally, you can separately check the Temp directories for malware.
  2. Now go into it. You may find yourself with a large list of files that you do not understand. Select them all using the mouse or with the Shift key combination for faster selection.
  3. When all files are selected, press the combination of Shift and Delete buttons. This must be done at the same time. The system will clarify whether you really want to permanently delete these files, to which you respond positively.
  4. Wait until the documents and information disappear from your computer. This completes the cleaning of the Temp area.

Cleaning problems

It happens that deleting files from this folder is not always successful. That is, an error may occur when clearing and deleting some information. Don't worry right away that you have some problems with your computer. In fact, the system may be using these files in this moment time. If you know which program is using documents, you can close it using the task manager from the registry and then try again to clean the Temp directory.

Let's sum it up

The Temp folder is located in one of these following paths:

  1. C:\Windows\Temp
  2. C:\Users\Username\AppData\Local\Temp

Its direct purpose is to store temporary files and documents when the user uses certain programs and utilities. In this regard, the location, called Temp, can take up a significant amount of space in the computer’s memory: sometimes this weight reaches several gigabytes! An occupied space can negatively affect the operation of a computer or laptop. Therefore, users are recommended to promptly empty this folder in order to free up memory from downloaded information.

Many people wonder: is it possible to delete the Temp directory? As mentioned above, this is not possible, since this is a system directory. You can only clean it by deleting the files located in it, but not the location itself. We hope that everything worked out for you without any problems, dear readers. Let us share in the comments who had what amount of information along this path and whether you were able to free up space.

Every person who has a computer sooner or later has a problem with insufficient memory on the hard drive. Because of this, the PC may slow down. This inconvenience makes us think about deleting unnecessary files and programs and cleaning the computer from other unnecessary garbage.

First of all, games, photos, movies, etc. go into the cart. Their absence will not affect the operation of the system in any way. In other words, everything that is on user drives (such as D or E) can be deleted. The same cannot be said about drive C - this is a place where it is generally not recommended to make any changes.

However, there are also hidden folders in which changes can be made. We are talking about the TEMP folder (from English “temporary”). As the name suggests, it contains temporary files, the deletion of which will not affect the operation of the computer in any way. An interesting question arises - can this folder be deleted altogether, especially since it takes up so much space?

You need to remember: nothing is created on a computer that easily, and this article will help you figure out how to properly free up memory without harming your computer.

Folder TEMP. Should I delete or not?

First, you need to understand what this “temporary folder” is. As such, it is permanent and part of the Windows system. Removing it will certainly cause your computer to malfunction. But while the operating system or some programs we have installed are running, documents are created that accumulate in huge quantities in the TEMP folder. Thus, the files necessary for the OS are always in one place, and are not scattered throughout the computer.

Some files have a self-destruct function, but due to improper handling of the computer, the program crashes and cannot delete an irrelevant document. Such documents accumulate over time, reaching over 5 GB in size for some users.

Therefore, the question of removing excess debris becomes quite real. Only often after clearing the memory on its own, the computer, instead of working better, begins to slow down even more. And sometimes such independence ends with a trip to service center for equipment repair.

So, the conclusion is The TEMP folder cannot be deleted, but the contents can be cleaned. Now you need to figure out how to free up memory from this place without harming your computer, but on the contrary, increasing the quality of its work.

Options for clearing the contents of the TEMP folder

There are few options as such:

  • Do it yourself, using the Disk Cleanup function.
  • Manually, deleting the necessary files yourself.
  • Using special programs that analyze all documents and make their deletion harmless.

If you rely on yourself, then you should do the following simple procedure (using Windows 7 as an example):

The same procedure can be performed differently: in the TEMP folder, use the mouse to select all documents and click on Delete key. However, in this case, the PC may throw an error, since some temporary files may be used by one or another program. Then you can leave the necessary documents simply by clicking “skip” in the window.

Then all garbage will be deleted, and the files that are currently involved will remain.

Cleaning TEMP contents using special programs

People tend to doubt their abilities. Therefore, there is a desire to seek help from special programs performing certain tasks. There are many “helpers” on the Internet that allow you to safely clear your computer of unnecessary information.

One of the most popular PC cleaning utilities is CCleaner.

Download CCleaner for free

It is easy to use and can clean unnecessary files, while accelerating the Windows operation. In order for the deletion to begin, when starting the software, it is enough to tick the files that need to be destroyed (in our case, temporary ones), and then by clicking the “Cleanup” button, the process itself will begin.

Afterword

It is important to know that any equipment, if it is clogged, will sooner or later fail. And to prevent this from happening, you need to take care of her. Be careful when deleting certain files and directories because this may lead to malfunctions in the system itself.

Don't forget to clean your computer of non-persistent files from time to time. Moreover, if it is not just allowed, but strongly recommended.

The Temp folder in Windows 10 is designed to store temporary files that are necessary for the operation of the system or some application. Unfortunately, the contents of this folder are not always cleared automatically after completing a specific task. That's why, this folder Users often clean manually. However, in order to delete unnecessary files from this folder, you need to know how to find the Temp folder in Windows 10.

How to get to the Temp folder on Windows 10?

There are several Temp folders in Windows 10. All of them are stored in different places, namely:

  • C:\Temp;
  • C:\Windows\Temp;
  • C:\Users\YOUR_USERNAME\AppData\Local\Temp\.

To get to these folders, you can manually go to the specified addresses or perform a few simple steps.

Method number 1. Using the Run line

  • Press “Win+R” and enter “%TEMP%”.
  • A folder with temporary files will open.

Method number 2. Using the Explorer address bar

In order to get to the Temp folder in Windows 10, you should open Explorer and in address bar enter "%USERPROFILE%\AppData\Local\Temp" or "%TEMP%" (without quotes).

How to clear Temp folder on Windows 10?

You learned where the Temp folder is located in Windows 10. Now you can clean it. To do this, you should use the following recommendations.

Method number 1. Standard cleaning Temp

  • Open Explorer. Click right click mouse on drive C and select “Properties”. A small window will open. Click "Disk Cleanup".

  • Place a check mark next to the “Temporary files” item and click “Clear”.

  • We are waiting for the folder to be cleaned up.

Method number 2. Using .bat file

To create a .bat file, you should do the following:

  • Click “Start” and select “Notepad”.
  • In Notepad, paste the line “rd %temp% /s /q md %temp%”.

  • Save the file as “%appdata%\microsoft\windows\start menu\programs\startup\cleantemp.bat”. So you create batch file, cleantemp.bat, in the Startup submenu of your Start Menu. The created bat file will be downloaded automatically.

Method No. 3. Using the Task Scheduler

  • Launch the Task Scheduler. To do this, go to “Control Panel”, “Administration” and select “Task Scheduler”.

  • A new window will appear. Select “Create a simple task”. We set any task name, and in the actions we indicate “forfiles.exe /p "%TEMP%" /s /m * /d -3 /c "cmd /c del /F /Q /A @file"" and "forfiles. exe /p "%TEMP%" /s /m * /d -3 /c "cmd /c rd /S /Q @file"".
  • Set the task execution time. The Temp folder will be cleared automatically.

It is important to note that two latest methods Suitable for cleaning the temporary files folder of only one user. If your PC has several profiles, then cleaning must be done for each profile separately.

How to move Temp folder in Windows 10?

In order not to go to the address: C:\Users\USERNAME\AppData\Local\Temp\ every time, you can move the folder with temporary files to the directory top level, for example to the folder C:\Temp. To do this we do the following:

  • Calling up the system properties. A new window will open. In the menu on the left, select “Advanced system settings”.

  • A new window will open. You can see two variables in it: TEMP and TMP. For both variables, click “Change” and enter a new value for the variable: “C:\Temp”.

  • We save the result.

After completing the above steps, the location of the folder with temporary files will change.

Temporary file- file created specific program or an operating system for saving intermediate results during operation or transferring data to another program. Typically, such files are deleted automatically by the process that created them.

Some operating systems have additional features when working with temporary files - the ability to get the name of the temporary file (and one that will be unique - that is, it will not coincide with the name already existing file); the ability to specify a special parameter when creating (opening) a file, instructing the file to be deleted immediately after recording

But not all programs delete temporary files. Over time, the folders where temporary files are stored grow and take up a lot of space on your hard drive. You can, of course, clean these folders manually, but then you will have to clean temporary files located in several places, since the system provides its own temporary folders for each user.

  • C:\Windows\Temp
  • C:\Users\Vladimir\AppData\Local\Temp
  • C:\Users\All Users\TEMP
  • C:\Users\All Users\TEMP
  • C:\Users\Default\AppData\Local\Temp

Settings

How to set up automatic cleaning of temporary files in browsers is described in my article " Removing temporary files and cookies in browsers. Clearing the disk cache. ". For settings automatic deletion all temporary files, you must define one temporary folder for all users. Open system properties Control Panel - System - Advanced system settings - Environment variables. Changing variables TEMP And TMP on C:/Windows/Temp. To change, for example, a variable TEMP, select it and press the button Change. Enter the value and OK

When both variables have been changed, you can configure automatic cleaning of this folder Temp

Open Notepad or any text editor and copy this code

pushd %TEMP% && rd /s /q . > nul 2>&1
pushd %WinDir%\TEMP && rd /s /q . > nul 2>&1

We save the file under any name, but with the extension .cmd in a folder, for example, of a user with administrator rights.

Now let's launch the editor group policies: Start - Run and enter the command gpedit.msc Open Computer Configuration - Windows Configuration- Scripts (start/stop). In the right half of the window, open the parameter properties Shutdown. Button Add and specify the path to the saved file

Click OK, then Apply and OK. Now we do the same in the section User Configuration. That's it - setting up automatic cleaning of temporary files is complete. When you shut down, temporary files will be deleted. You can check the deletion of temporary files by opening the folder C:/Windows/Temp, reboot and open this folder again. If there are no files, then everything was done correctly.

The Temp folder in Windows can greatly slow down the performance of the system, on the Internet who is saying what and it is very difficult to understand all the opinions, what are these temporary files for in general? If still temp folder need to delete it, then how? this process automate? To be honest, I’m used to taking information from books, but I had a problem with this question, so I had to turn to your Internet and you were the first to come across!

Temp folder in Windows

If I was the first to get caught, then I will try not to let the entire community down with my answer. What is the Temp folder in Windows and temporary files in general for? There are many processes constantly going on in the operating system, both belonging to Windows itself and to various third party programs. During operation, in order to save the intermediate or unfinished result of their activity, all running applications create temporary data files and actively use them.Temp folder in Windowsis a temporary file storage.Without a doubt, it is necessary to delete temporary files from the Temp folder, since too many files in this folder can negatively affect the performance of the entire operating system.

How to clear content Temp folders in Windows ? The operating system is not always able to delete temporary files on its own, so this burden is shifted to us. In addition, many programs do not delete temporary files at all. Sometimes we ourselves incorrectly turn off the computer and do not allow temporary files to be deleted on their own; they simply do not have time for this.Let's take for example operating system Windows 7, there are as many as five temporary folders in it, but programs mainly use the first Temp folder and the second, they need to be cleaned first. You can delete the contents of folders manually, or you can automate the process using the method given at the end of the article.

Let's take the first folder C:\Windows\Temp, in a day of working on the computer it has accumulated only 33.7 MB, although in a week it can accumulate several gigabytes, let's delete all the files. I don’t remember many cases where the Temp folder in Windows accumulated several tens of gigabytes on users’ computers.

You can also delete temporary files used when visiting various pages on the Internet using the standard Windows programs Disk cleanup. Start and type and Enter, select drive C, and at the same time delete other temporary files.


We automate the process of cleaning the Temp folder in Windows, create batch file script. If difficulties arise, you can play it safe and create a recovery point. Start, right-click on the My Computer icon ->Advanced settings -> Environment Variables.

In this window, we need to change the Value of the TEMP and TMP variables to C:\Windows\Temp. Select the TEMP variable and click Edit.

Enter the value C:\Windows\Temp and OK

We do the same with the Value of the TMP variable

Result

Next, open any text editor and paste this code.
pushd %TEMP% && rd /s /q . > nul 2>&1
pushd %WinDir%\TEMP && rd /s /q . > nul 2>&1
We save the file in the root of drive C, under any name, but with the extension .cmd, for example alex.cmd.


Now launch the Group Policy Editor: Start - Run and enter the command gpedit.msc

Computer Configuration - Windows Configuration - Scripts (startup/shutdown).

Open the properties of the Shutdown parameter.

Click on the Add button and specify the path to the saved file