ExifTool Forum

ExifTool => Newbies => Topic started by: BeTePoK on November 13, 2023, 03:04:56 AM

Title: seqental change $datetimeoriginal error
Post by: BeTePoK on November 13, 2023, 03:04:56 AM
I would like seqental change $datetimeoriginal, but i have error.

I do the following-
exiftool.exe -datetimeoriginal="2004:09:01 12:00:00" DIR

next -
exiftool.exe "-datetimeoriginal+<0:$filesequence" DIR

response:
exiftool.exe : Warning: No writable tags set from IMG_20040901_1.jpg
+ exiftool.exe "-datetimeoriginal+<0:$ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Warning: No wri...0901_1.jpg:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Warning: Invalid tag name '0:'. Use '=' not '<' to assign a tag value - IMG_20040901_2.jpg
Warning: No writable tags set from IMG_20040901_2.jpg

OS: Win11
Title: Re: seqental change $datetimeoriginal error
Post by: Phil Harvey on November 13, 2023, 08:13:34 AM
If you are running in PowerShell you need single quotes instead of double quotes.

- Phil
Title: Re: seqental change $datetimeoriginal error
Post by: StarGeek on November 13, 2023, 08:43:07 AM
With PowerShell, you need to pay attention to the highlighting of the options. See this post (https://exiftool.org/forum/index.php?topic=14962.msg80581#msg80581).

If you have further problems, you might want to switch to CMD, as PS has a lot of idiosyncrasies when compared to other command lines.