| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 16599 | 2002-03-12 22:17:00 | Deleting temp folder contents | Guest (0) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 38922 | 2002-03-12 22:17:00 | How do I delete the contents of my temp folder (not the temporary internet files) at start-up. I have gone through heaps of back issues but cannot find where I read how to do this. Thank you for your help Peter A |
Guest (0) | ||
| 38923 | 2002-03-12 22:43:00 | The easiest way is to create a batch file and place it in the startup folder. Open a new text file in notepad or something similar. Type deltree 'C:\WINDOWS\TEMP\' /y and then save the file as TEMPDEL (or something similar) somewhere. Locate the file and change the extension from .txt to .bat. Right click the file and under the program tab check 'Close on exit' and then OK. A new file will be created with a MS-DOS icon and the same name as the batch file. Place this file in your start-up folder. Done! [You can also add other folders to be cleaned out in the same manner.] G P |
Guest (0) | ||
| 38924 | 2002-03-13 05:07:00 | Why do you want to empty the temp folder at startup. When you install a program and have to restart windows for the install to complete, some files are kept in temp for this. Deleting temp files at start up may make some programs not install/uninstall well. JM |
Guest (0) | ||
| 38925 | 2002-03-14 08:43:00 | I'm a little bit worried by the DOS instructions given to delete the Windows/Temp folder on start-up. Would this not delete the Windows/Temp folder permanently? The Windows/Temp folder is used frequently ie every time a program is installed. Would it not be necessary to re-create a Windows/Temp folder by the inclusion of the DOS MD command in the batch file? My knowledge of DOS is far from complete but, to me, something is missing from the suggested Batch file. | Guest (0) | ||
| 38926 | 2002-03-15 09:38:00 | The forward slash after the folder means that the contents are deleted, but not the directory itself! To be safe you could always add *.* after the forward slash. The batch file also runs after machine services, and regisrty entries placed in the 'run' area of the registry. Install Programs using information from the temp folder place their commands in the runonce directory of the registry whish is run BEFORE the files in the common startup group ie where I directed the batch file should be stored. You could run the batch file with a registry command, but this would cause problems as you suggest JM G P |
Guest (0) | ||
| 1 | |||||