Date should not be changed

Started by OOmatrixOO, December 31, 2011, 07:04:28 AM

Previous topic - Next topic

OOmatrixOO

Hello.
I write the file name with the following command in my photos:

@echo off

:: initialise some variables that can be practical...
set BatFileDir=%~dp0

:: Start to do the real work
echo Busy processing file %1
"%BatFileDir%\exiftool.exe" -overwrite_original "-Filename>Caption-Abstract" %1
echo.

:: If an error occured, pause...
if %errorlevel% neq 0 pause


What do I need to add that the date is not changed?

Thanks.

Phil Harvey

Use the -P option for this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

OOmatrixOO