ExifTool Forum

ExifTool => Newbies => Topic started by: OOmatrixOO on December 31, 2011, 07:04:28 AM

Title: Date should not be changed
Post by: OOmatrixOO on December 31, 2011, 07:04:28 AM
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.
Title: Re: Date should not be changed
Post by: Phil Harvey on December 31, 2011, 07:36:18 AM
Use the -P option for this.

- Phil
Title: Re: Date should not be changed
Post by: OOmatrixOO on January 02, 2012, 02:34:50 AM
Thank you works perfectly.