Changing File Date

P

PatETC

Is there a way in Windows XP to change the date a file was created?

In particular I want to change the date that digital pictures were
taken. The file date defaulted because the camera setting were not
correct and I want them to reflect when they were taken.


Pat
 
D

David Candy

Open a folder with the photos. Click Start - Run, then frag the folder icon from the open folder's titlebar into the Run dialog. Preface what windows has typed for you with

cmd /k cd /d <the folder name windows typed for you>

A command prompt opens. Type

time
<enter the time you want>
date
<enter the date you want>

copy /b "filename.ext"+,,

To do all files in the folder to this time/date

For %A in (*.*) do copy /b "%A"+,,

To do just jpg

For %A in (*.jpg) do copy /b "%A"+,,

You could also do all files starting with DSC10 that are jpegs.

For %A in (DSC10*.jpeg) do copy /b "%A"+,,

You could also do all files starting with DSC10 and the 8th and 9th characters are 20 that are jpegs.

For %A in (DSC10??20*.jpeg) do copy /b "%A"+,,

To see filenames use dir, to see all jpegs and jpgs use

dir *.jp*

Remember to correct your clock back to normal time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top