kosho wrote:With the command :
Code: Select all
nconvert -o "C:\#test\jpg\7V1A3881.JPG" -out jpeg -resize 1920 1280 -opthuff -q 90 -i "C:\#test\7V1A3881.JPG"
the result :
Conversion of C:\#test\7V1A3881.JPG into C:\1test\jpg\7V1A3881.JPG OK
Why the output folder is changed to C:\1test?
In the NConvert help file '#' is defined as a numeric enumerator:
Code: Select all
Options :
...
-o filename : Output filename
Use # to specify position of numeric enumerator
Use % to specify source filename
Use $ to specify full source pathname
Use $$ to specify source folder name
I don't know if there is a way to 'escape' that interpretation, but doubling as required to escape some characters in a Windows batch file would be interpreted as a two-character numeric enumerator...
Edit -- Two possibly relevant posts:
Re: output to folders with "#"
Filenames with % character
I don't know if the proposal in the first was implemented, and the second suggests that it might be worth trying '##' contrary to my thought above?
Does anyone know if '#' can be escaped when used in an output file name?