1.

Solve : modifying a picture?

Answer»

I am making a PSP magazine. What this is is a group of photos that can be viewed like a magazine. The problem is that the PSP puts the photos in order according to their modified dates. Therefore I need to some way modify a group of .jpg's at the same time, but in order (001, 002, 003, ETC.) so that the modified time goes in order. I was THINKING a simple .bat maybe?What you want is to be able to 'Touch' your files, so the datestamp is UPDATED, but nothing ELSE is changed.

Microsoft show this example using the copy command : http://support.microsoft.com/kb/69581

In ESSENCE, the command is this
copy /b %1 +,, > nul

So all you need to do is to do is paste this into a batch file

Code: [Select]@Echo Off
For /F %%a in ('dir/b') Do Call :TouchMe %%a

GoTo :EOF

:TouchMe
copy /b %1 +,, > nuland this will make the date/time order the same as the alphabetical order of your files

Graham



Discussion

No Comment Found