Say I've got two dirs, foo and bar. Both have got a file 'test.php'. I'd like to check if the copy of test.php in bar is newer than the one in foo. How can I do this? I'm using windows XP but would prefer a cross platform solution, though if that's possible, windows only would work too.
Edit: Only need to check text files containing code, e.g: php, javascript, css, and html files. No need to check for images though if that could be checked it'd be a bonus.