![]() |
| Register | |||||||
| General Software This is the forum for general discussions about software. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Black Sheep Join Date: 7 Oct 2002
Posts: 2,296
Reputation: 729 ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 16 | Recently, a few forummers here was kind enough to pass me their batch files and among the batch files was one that's used to clear the temp folder. However in Windows XP there's another temp folder located in your profile settings and when I added the following lines to the batch files, nothing seems to happen to it, so what gives? del c:\windows\temp\*.* /Q del C:\Documents and Settings\Jeremy Tan\Local Settings\Temp\*.* /Q |
| | |
| SPONSOR |
| |
| | #2 (permalink) |
| ARP Webmaster Join Date: 13 Oct 2002 Location: http://atpeaz.placidthoughts.com/
Posts: 8,501
Reputation: 1633 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 31 | The easiest way to know where to clear the files is to use the environment variables since that's also where Windows get the temp folders location. There's two folders and their environment variable name is TMP and TEMP (Note: myself, i always redefine the TMP and TEMP folders to C:\TEMP\ for easy management so you can actually use this del %TMP%\*.* /Q del %TEMP%\*.* /Q There's is one problem with deleting files this way. There's usually some files there that's still being used by windows. Thus, they are locked and there's nothing you can do to remove them. the only way is to run this script during boot time or right before windows shut down. one more things. The default del command is quite primitive as it cannot delete sub directories. My suggestions is to do a search online and get a more powerful del command that also allows you to delete sub directories. Edit: Add attachment for delete.exe utility |
| | |
| | #3 (permalink) |
| Administrator! Join Date: 21 Apr 2003 Location: Penang
Posts: 29,763
Reputation: 2162 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 56 | Here's a forcedelete utility that I tried just now. Well, didn't actually try on system file Got it from... http://www.codeguru.com/Cpp/W-P/file...cle.php/c1287/ The *.exe is in this folder.. NtSystemInfo\ForceDel\Release\
__________________ | Intel Core 2 Duo E6850 @ 3.2Ghz | ASUS P5B-E Plus | G.SKILL 2x1GB DDR2 800 | 6 HDDs (2TB+ only ![]() Blog : Dashken's I-Blog Gallery : Dashken's I-Paintings |
| | |
| | #4 (permalink) |
| ARP Webmaster Join Date: 13 Oct 2002 Location: http://atpeaz.placidthoughts.com/
Posts: 8,501
Reputation: 1633 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 31 | actually, you are NOT suppose to force delete those files that are being used in the TMP and TEMP folders... running programs will fail! or shut down! LOL |
| | |
| | #5 (permalink) |
| Super Active Join Date: 25 Feb 2003 Location: USA
Posts: 1,580
Reputation: 285 ![]() ![]() ![]() Rep Power: 9 | Yep peaz! That's why I never put those directories in the batch files. Programs use them as a backup, or long term temp files. I just compress them, because one time I deleted them and when I rebooted, a few things didn't open. Then when I tried to do a repair install, it said the setup files could not be found. Luckily, I left them in the recycling bin, so I just un-installed them. After that, everything was fine!
__________________ Running : Gigabyte EP45-DS3R, Intel E7200 C2D, 2GB DDR2 Dual Channel, WD Raptor 74GB, WD 500 GB HDD, ASUS 16X DVD-ROM, LiteOn 16X DVD+/-RW, 1.44 MB Floppy, ATI Radeon HD 3450, Dell 2005FPW, and a SB Audigy2 ZS PRO with Logitech Z5300e speakers. |
| | |
| | #6 (permalink) | |
| Administrator! Join Date: 21 Apr 2003 Location: Penang
Posts: 29,763
Reputation: 2162 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 56 | Quote:
Actually I never clear TEMP/TMP files coz sometimes there are installation files in there. Dang... actually I never clean my Internet temp or temp files, unless something goes wrong. That forcedelete was for you to forcedelete some files or folders that you can't delete coz some apps are using and you don't know which apps and you don't want to restart windows to release it. Last but not least, you have to know what files you are actually deleting to make sure after you delete it, your windows still runs normally.
__________________ | Intel Core 2 Duo E6850 @ 3.2Ghz | ASUS P5B-E Plus | G.SKILL 2x1GB DDR2 800 | 6 HDDs (2TB+ only ![]() Blog : Dashken's I-Blog Gallery : Dashken's I-Paintings | |
| | |
| | #7 (permalink) |
| ARP Webmaster Join Date: 13 Oct 2002 Location: http://atpeaz.placidthoughts.com/
Posts: 8,501
Reputation: 1633 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 31 | Haha. posting that here might have confused some people mah. But it's a good find. THe only other utility i know of marks files for deletion when the pc restarts. Not forcing the apps to shut down to delete the file. |
| | |
| | #8 (permalink) |
| shutdown -h now Join Date: 15 Aug 2003 Location: in front of my pc
Posts: 6,001
Reputation: 1078 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Rep Power: 22 | Well if you must delete can you delete the files when windows is shutting down?
__________________ "God does not play dice with the universe." - Albert Einstein (1879-1955) http://edward-lim.blogspot.com |
| | |