Bulk file 'modified' time changer?
Bulk file 'modified' time changer?
Author
Discussion

Bee_Jay

Original Poster:

2,599 posts

278 months

Wednesday 20th September 2006
quotequote all
Hi,

After much searching I can't find what I want and wondered if one of you could help.

I am looking for a utility for Windows that will allow me to do the following.

Add 68 minutes to the 'modified' time of a whole bunch of files.

More explanation: I am a pro photographer and my colleague and I shot a wedding together the otehr day but forgot to synchronise the time on our cameras first, as such the photos do not sort correctly...

My camera was 68 minutes behind his and his was correct. So I am looking to add 68 minutes to the 'modified' time of all my files in one go. I can find many utilities that allow me to pick a time to set them all to, but this is more of an 'offset' job.

Anyone know of any freeware?

Joe.

Plotloss

67,280 posts

300 months

Wednesday 20th September 2006
quotequote all
Are any of the utilities you have command line based?

If so it would be fairly easy to script a batch file around them to do it.

Bee_Jay

Original Poster:

2,599 posts

278 months

Wednesday 20th September 2006
quotequote all
No, they are all GUI...

scorp

8,783 posts

259 months

Wednesday 20th September 2006
quotequote all
You can set multiple files to the current time by using a programmers tool called "touch". Not sure about setting arbitrary modified times though.

roadsweeper

3,789 posts

304 months

Wednesday 20th September 2006
quotequote all
scorp said:
You can set multiple files to the current time by using a programmers tool called "touch". Not sure about setting arbitrary modified times though.

He could change the system clock on his machine to the desired time maybe?

CommanderJameson

22,096 posts

256 months

Wednesday 20th September 2006
quotequote all
scorp said:
You can set multiple files to the current time by using a programmers tool called "touch". Not sure about setting arbitrary modified times though.

You can select the time you want to use with 'touch'.

Here's an example:
C:Temp>dir
Volume in drive C has no label.
Volume Serial Number is 58D5-0ADB

Directory of C:Temp

20/09/2006 13:43 <DIR> .
20/09/2006 13:43 <DIR> ..
20/09/2006 13:43 7 thing.txt
1 File(s) 7 bytes
2 Dir(s) 137,769,623,552 bytes free

C:Temp>touch -t 01011200 thing.txt

C:Temp>dir
Volume in drive C has no label.
Volume Serial Number is 58D5-0ADB

Directory of C:Temp

20/09/2006 13:43 <DIR> .
20/09/2006 13:43 <DIR> ..
01/01/2006 13:00 7 thing.txt
1 File(s) 7 bytes
2 Dir(s) 137,769,623,552 bytes free

C:Temp>

Never mind the wacky indenting.

Bee_Jay

Original Poster:

2,599 posts

278 months

Wednesday 20th September 2006
quotequote all
Still doesn't really help me though...

Plotloss

67,280 posts

300 months

Wednesday 20th September 2006
quotequote all
You'd need to read in the modified date/time, add 68 minutes to it and then touch with the new date/time

Didnt know you could get a touch for windows...

Plotloss

67,280 posts

300 months

Wednesday 20th September 2006
quotequote all

Bee_Jay

Original Poster:

2,599 posts

278 months

Wednesday 20th September 2006
quotequote all
Plotloss said:


Cool, I'll give it a try!

scorp

8,783 posts

259 months

Wednesday 20th September 2006
quotequote all
CommanderJameson said:
..


Cool, i guess it depends on the version, the last time i used that was nearly a decade ago.. some old borland version..

Bee_Jay

Original Poster:

2,599 posts

278 months

Wednesday 20th September 2006
quotequote all
Bee_Jay said:
Plotloss said:


Cool, I'll give it a try!


Worked a treat - thanks!!!