Page 1 of 1

How to enter the specified directory?

Posted: Mon Nov 14, 2016 3:14 am
by starix
Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?

Re: How to enter the specified directory?

Posted: Mon Nov 14, 2016 7:15 am
by cday
starix wrote:Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?
From the help file:

Code: Select all

-o filename       : Output filename Options section:

              Use # to specify position of numeric enumerator
              Use % to specify source filename
              Use $ to specify full source pathname
              Use $$ to specify source folder name
              Use $EXIF:DateModified[date format] to specify EXIF date modified
              Use $EXIF:DateTaken[date format] to specify EXIF date taken
	      Date format: Please check documentation of strftime
There should be examples of the use the above parameters in NConvert forum posts.

Re: How to enter the specified directory?

Posted: Mon Nov 14, 2016 7:48 am
by starix
cday wrote:
starix wrote:Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?
From the help file:

Code: Select all

-o filename       : Output filename Options section:

              Use # to specify position of numeric enumerator
              Use % to specify source filename
              Use $ to specify full source pathname
              Use $$ to specify source folder name
              Use $EXIF:DateModified[date format] to specify EXIF date modified
              Use $EXIF:DateTaken[date format] to specify EXIF date taken
	      Date format: Please check documentation of strftime
There should be examples of the use the above parameters in NConvert forum posts.

Thank you very much for your answer.

Re: How to enter the specified directory?

Posted: Mon Nov 14, 2016 7:54 am
by cday
Here is a simple example that rotates images in the Input folder and places the output files in the Output folder:

Code: Select all

nconvert -rotate 90 -out jpeg -q 80 -o "C:\X\Output\%%.jpg" C:\X\Input\*.jpg
The '%' in the code is doubled as I ran the code in a Windows batch file.

Note also that quotes can't be used together with wildcards around the input term, but from memory input filenames may have spaces but not the input file paths.