Main Menu

BAT file - question

Started by Sunny, Today at 01:18:06 PM

Previous topic - Next topic

Sunny

I have a question regarding example #5

If my BAT file looks like the following, then everything works as it should
exiftool -k -o %%e_images/%%d "folder 1"
2024.10.22 (18.41.43).png

My test folder

2024.10.22 (18.47.32).png


The problem is when I want to drag and drop a folder into a BAT file then I get an error, the folder jpg_images is created but the files are not moved into it

exiftool -k -o %%e_images/%%d %1
2024.10.22 (19.01.57).png

2024.10.22 (18.42.58).png


What could be the problem?  :(


Phil Harvey

The problem has nothing to do with the BAT file.  The same thing will happen when dragging and dropping on the command line.  The error message says it all.
...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 ($).

Sunny

Ah, indeed I already know, I thought that this option works a little differently, that in this case pics is the same as DIR. Thanks Phil.