ExifTool Forum

ExifTool => Newbies => Topic started by: Jossie on October 20, 2020, 04:38:19 AM

Title: Creating variables for MS-DOS-BAT-script?
Post by: Jossie on October 20, 2020, 04:38:19 AM
Hello,

is it possible to create MS-DOS variables inside a BAT script using EXIFtool, e.g. to signal the existence of a specified tag or create a variable with the content of a specified tag? I could then use these variable to branch in the script according to the content.

Hermann-Josef
Title: Re: Creating variables for MS-DOS-BAT-script?
Post by: Phil Harvey on October 20, 2020, 06:42:50 AM
I found this (https://devblogs.microsoft.com/oldnewthing/20120731-00/?p=7003) by googling.

- Phil
Title: Re: Creating variables for MS-DOS-BAT-script?
Post by: Jossie on October 20, 2020, 07:31:54 AM
Thank you Phil for this link. I will give it a try and report back.

Hermann-Josef
Title: Re: Creating variables for MS-DOS-BAT-script?
Post by: Jossie on October 20, 2020, 10:46:29 AM
Just tested it with the command line. It works nicely! Thanks a lot again.

Hermann-Josef