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.