Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
When programs delete files
Name: p64 Date: May 17, 2009 at 03:33:27 Pacific OS: Windows Vista Subcategory: General
Comment:
So when you delete a file, it goes to the Recycle Bin, and when you empty the Recycle Bin the computer just forgets where it put it and marks that space OK for storing new files.
But when a program/application deletes a file (for example a temporary file to make the program work), what happens to it? Does it get completely wiped or does it go to the same place as a file emptied from the Recycle Bin?
Name: StuartS Date: May 17, 2009 at 05:21:25 Pacific
Reply:
Generally speaking temporary files created by applications do not go to the recycle bin, they are just deleted. If temp files were sent to the recycle bin then the bin would fill up pretty fact with files that were of no use.
The only difference between sending a files to the recycle bin and deleting it completely is the way the directory entry is updated. In neither case is that data actually touched. In both case it is just a metter of changing a few bytes on the hard disk.
In the case of a file going to the Recycle Bin the information in the directory is just changed to reflect its new location. In the case of a complete delete the directry entry is marked as free and the space the file uses is marked as available and it remains intact until something else comes along and overwrites it.
Summary: Relates to an ealier post with title: Batch File deleting files by date? HAD TO CHANGE FOLLOWING TO GET WORKING 1. In Line: for /f "tokens=2" %%i in ('date /t') do set thedate=%%i Change tokens=2 to t...
Summary: Greetings All! The following MS-DOS code will delete any specified files, in specified location, and older then a specified date. "Delete files by older-then-date". Quick pseudo example: Delete *.t...
Summary: Hi I am trying to get a batch file to delete files which has dates older than 7 days so far I have @ECHO OFF CLS FOR /R C:\User_share %%FILE IN (*.*) DO ( ECHO starting if IF(0 == (ISDATE %%~zFILE bef...