Home > Common Problem > What kind of file is tmp? Can it be deleted?

What kind of file is tmp? Can it be deleted?

青灯夜游
Release: 2023-02-27 10:33:03
Original
52876 people have browsed it

tmp is a temporary file generated by various software or systems, which is often referred to as a junk file. tmp files can be deleted, and not deleting them for a long time will slow down the computer and cause lags. Deletion method: 1. Press the "Win R" key to open the "Run" dialog window; 2. Enter "cmd" and click the "Enter" key; 3. Execute "C:UsersAdministrator>del /f /s /q %systemdrive% *.tmp" command, the system will automatically delete all tmp files.

What kind of file is tmp? Can it be deleted?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

What file is tmp?

tmp is the abbreviation of temporary, which is a temporary file generated by various software or systems, which is often referred to as a junk file. Temporary files generated by Windows are essentially the same as virtual memory. However, temporary files are more targeted than virtual memory and serve a certain program alone. This leads to two problems: one is that it takes up space, and the other is that it causes problems after deletion. Risk of program failure.

What kind of file is tmp? Can it be deleted?

Temporary files: Created when you download and install uninstall software, open files in email and instant messaging programs, or transfer files. Usually, programs that create temporary files delete them when they are finished, but sometimes these files are retained. Temporary files may be retained for a variety of reasons: the program may be interrupted before completing the installation, or it may crash on restart.

Why create a tmp file?

The program will create this file mainly for backup purposes. For example, when you edit a document in Word or process a dense Excel document, the program will create a tmp file every once in a while (it looks a bit like some kind of caching function). However, when you finish working and close the program normally, the program will automatically delete the tmp file it created. However, if your program closes unexpectedly (forced shutdown, power outage, accident, etc.) then this tmp file will be saved.

Usually its location is C:\Windows\Temp

Can the tmp file be deleted?

The tmp file is the system The temporary file generated can be deleted, and if it is not deleted for a long time, it will slow down the computer and cause lag.

Method 1:

1. First create a new text document on the computer desktop, and then enter the content:

  @echo off
  del "%tmp%\*.*" /s /q /f
  FOR /d %%p IN ("%tmp%\*.*") DO rmdir "%%p" /s /q
Copy after login

What kind of file is tmp? Can it be deleted?

2. Then Save as, the file name suffix should end with .bat suffix, and select "all types" for the save type below. Place the saved file on the desktop first;

What kind of file is tmp? Can it be deleted?

3. Then click Run and enter the "shell:Startup" command;

What kind of file is tmp? Can it be deleted?

4. Finally, copy the .bat file on the desktop to the folder, which is the startup folder. Then every time you turn on the computer, the system will automatically clean up temporary system files.

What kind of file is tmp? Can it be deleted?

Method 2:

1. Press the "Win R" key to open the run dialog window;

What kind of file is tmp? Can it be deleted?

2. Enter "cmd" and click the "Enter" key;

What kind of file is tmp? Can it be deleted?

3. Enter "C:UsersAdministrator>del /f /s /q %systemdrive%*.tmp" command, click the "Enter" key, and the system will automatically delete all tmp files.

What kind of file is tmp? Can it be deleted?

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What kind of file is tmp? Can it be deleted?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
tmp
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template