Allow the system to automatically delete temporary files

Source: Internet
Author: User

Open the Start menu, select program → MS-DOS mode, and edit Autoexec in a plain text editor. bat file (that is, run the command "edit autoexec.exe" in DOS mode), In this automatically running batch file, the environment variables temp and tmp define the storage location of temporary files during Windows running. The default location is the "windowsemp" folder ).

The original Autoexec. bat file is:

Set comspec = C: WINDOWSCOMMAND. COM

SET windir = C: WINDOWS

SET winbootdir = C: WINDOWS

Set path = C: WINDOWS; C: WINDOWSCOMMAND

Set prompt = $ p $ g

Set temp = c: windowsemp

Set tmp = c: windowsemp

The edited Autoexec. bat file is:

Set comspec = C: WINDOWSCOMMAND. COM
SET windir = C: WINDOWS
SET winbootdir = C: WINDOWS
Set path = C: WINDOWS; C: WINDOWSCOMMAND
Set prompt = $ p $ g
Deltree/Y x: emp (delete the temporary file folder, where x is the drive of the folder)
Md x: emp (create a temporary file folder and X is your drive letter)
Set temp = d: emp
Set tmp = d: emp

After the file is edited, save the disk. After the above settings, the user will automatically delete temporary files each time the computer is started.


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.