Changing Input Directory for mogrify in MSDOS

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
gis_lady

Changing Input Directory for mogrify in MSDOS

Post by gis_lady »

I'm trying to figure out how to specify a different input path for the mogrify command within DOS.

I'm trying to do a batch conversion of all files that are .bmp into pnm format. The command below works good, except I don't know how to run the command without changing my current directory to where the bmp files are located.
I don't want to change my current directory. The way we plan to run this command will be from a local machine that may not have a map drive letter to the remote share where the .bmp files are located. Therefore, for us is important to have the input directory to be a UNC path.

mogrify -path outputdir -format pnm *.bmp

Any clues??
gis_lady

Re: Changing Input Directory for mogrify in MSDOS

Post by gis_lady »

I figure it out. In case anyone else has that question in the future, below is the typical command for MS DOS using UNC.

mogrify -path \\server\share\outputdir -format pnm \\server\share\inputdir\*.bmp
Post Reply