Filename References - using @ with filepath

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dgan
Posts: 2
Joined: 2011-01-13T05:05:52-07:00
Authentication code: 8675308

Filename References - using @ with filepath

Post by dgan »

When the using the input filename option to reference another file containing a list of input files (by using the @ prefix on the filename), is there a way to specify a path as well as the reference filename?

This option works as expected if the reference file is in the active directory when convert is run as shown in this example:

convert @myFileList.txt “C:\Output Folder\myOutput.pdf”

These variations where I attempted to reference a file in another directory do not work:

convert @C:\TempFolder\myFileList.txt “C:\Output Folder\myOutput.pdf”
convert @”C:\Temp Folder\myFileList.txt” “C:\Output Folder\myOutput.pdf”
convert C:\TempFolder\@myFileList.txt “C:\Output Folder\myOutput.pdf”

I'm running convert via a shell execute from a third-party application where I don’t have control over the current directory when the convert is run, so I cannot resolve by just changing the directory.

I'm using version ImageMagick 6.5.4-2.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Filename References - using @ with filepath

Post by anthony »

I would report this as a bug, or use some work around

For example if you're working directory is on the 'C:' drive try it without the 'C:'

Code: Select all

  convert @\Temp Folder\myFileList.txt   \Output Folder\myOutput.pdf 
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply