Page 1 of 1

Changing Input Directory for mogrify in MSDOS

Posted: 2009-03-10T08:02:14-07:00
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??

Re: Changing Input Directory for mogrify in MSDOS

Posted: 2009-03-10T09:49:41-07:00
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