View Full Version : add one hour to file time attribute


inoxo
02-14-2008, 04:17 AM
Hi,

I have an Access application whith manage pictures. The pictures come from different sources and the date/time is'n always correct.

For example, I need to add one hour to every jpg where the file name contains the string "xyz".
There are many untilities which can set the time attibute to a given time but I didn't found any to increase/decrease the time attribute with a given delay (1 hour, 1 day, 1 year, ...)

I expect this could be with a short VBA function. Does anyone has an idea or - better - the right code ?

Thanks.