Get exif to use different source than its current directory

Started by Eliz_Bot, December 17, 2018, 05:51:26 PM

Previous topic - Next topic

Eliz_Bot

My bat file runs the following:

echo off
title working?
C:\Users\UsersName\Desktop\exiftool.exe -a -p "imagedimensions=$imagesize" -q -sort *.jpg > ..\out.txt


This works great if it is called (from a VBS file) when in the same folder as the images, however, I was the structure to sit like so:

Top Folder
   |_ Folder: "Scripts"
   |      |__ Bat file
   |_ Lots of JPGS
   |_(VBS)

I Can get the photo information to be outputted to the correct higher directory - but I cant get it to take the pictures from there!
I cannot figure out how to get it to read a set of pictures in the directory up. I've tried an array of "normal syntax" (..\ etc) I do want it to be a realitive path rather than absolute!

How would I set it so that it reads from above its current directory?

Thank you!

Eliz_Bot

SOLVED :


%CD%\..\ was what I needed after exiftool.exe. I had it \..\%cd% in my last trial. [/size]