I want to create a batch file that executes a command (delete the file, for a simple example, though my command is custom/different) on each file matching a wildcard (say *.jpg) that was modified since some date (such as 1-1-2010 or later). The date can either be hardcoded in the batch file or passed as a command line param.
Pseudocode...
I've got a site with a basic login/logout system.
When I display pages I do a check to see when the page was last modified and if the browser has sent an if modified since header. If it hasn't been modified I send a 304 header and exit.
This obviously loads the page alot quicker and means less memory and processing power for me as I do...
I want delete files in a folder, which are more than six months old -older than 6 months-using Msbuild.
I want use %ModifiedTime (Well-known Item Metadata) of MsBuild
I prefer not use customs Tasks, only msbuild default and Microsoft.Sdc.Tasks. I use VS 2008, .net .35.
any suggestions ?
<Target Name="SomeTarget">
<ItemGroup>
<...
I am aware that you can track when the contents of a folder have been modified while your application is not open on OS X with FSEvents, but it is difficult checking the modification date of every file in the directory when the application launches. Is there a way to change FSEvents or is there another mechanism to tell what files have b...
Hi, if anyone hacks a site, then I would like to check which files are changed maybe in the last 24 hours in the directory htdocs, that means the files in the subdirectories form htdocs too. How to do this?
I will be happy for any suggestions,
Cheers
Nik
...
I have a utility which goes through a processes a set of files in a directory - the process is relatively slow (and there are a lot of files) and so I've tried to optimise the process by only processes files that have a "last modified" later than the last processing date.
Usually this works well however I've found that as copying a file...
What is the most efficient way to detect modification to a file in Java?
I've read about file polling however, the polling approach has a number of drawbacks that become apparent as the number of watched files increases. I rather not use polling but a number of solutions online appear to point to file polling as the recommended method. ...
Did you know you can prevent the revalidation of files in browser cache and subsequent 304 response by completely removing both the ETag and Last-Modifed response headers?
Of course, this is easy in Apache, but as clear as mud in IIS 6. Does anyone know how to remove both of these headers in IIS?
...
Is there a way to know when the last write operation has occurred in a live SQL Server 2005 database?
I currently have 30 (and growing) databases on my server. Only some of these see daily activity (but which ones get daily activity varies over time.) My backup space is limited and I'd like to do a daily backup of all "modified since la...