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.
Filename References - using @ with filepath
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Filename References - using @ with filepath
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:'
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/
https://imagemagick.org/Usage/