Page 1 of 1
NConvert pour un débutant
Posted: Sun Mar 31, 2019 1:14 pm
by oliv30
bonjour et merci à ce programme
je cherche à transformer les images qui se trouve dans un dossier Input situé sur le bureau vers un dossier try en jpeg
j'obtiens un fichier .bat qui ne marche pas
Code: Select all
nconvert -o $$ \\vmware-host\Shared Folders\Bureau\input jpeg 80-q $$\\vmware-host\Shared Folders\Bureau\try
cela doit être simple mais dépasse mes compétences.
Merci pour votre aide
Olivier
Re: NConvert pour un débutant
Posted: Sun Mar 31, 2019 4:37 pm
by cday
oliv30 wrote: Sun Mar 31, 2019 1:14 pm
je cherche à transformer les images qui se trouve dans un dossier Input situé sur le bureau vers un dossier try en jpeg
j'obtiens un fichier .bat qui ne marche pas
Code: Select all
nconvert -o $$ \\vmware-host\Shared Folders\Bureau\input jpeg 80-q $$\\vmware-host\Shared Folders\Bureau\try
Bonjour, multiple issues, have you created a copy of the NConvert help file?
Please try using the following code as a model to develop:
Code: Select all
nconvert -o c:\x\try\%%.jpg -out jpeg -q 80 "c:\x\input\*.*"
Note that the input term must be the last term, the quotes " " are optional to allow spaces in the input file paths and names.
Re: NConvert pour un débutant
Posted: Sun Mar 31, 2019 8:08 pm
by oliv30
Thnaks you so much
I have a last stupid question
I can launch nconvert.exe in my command table
but when I launch my script he daesn't find it anymore.
here is the screen that I get
C:\Users\OM> "C:\Program Files\XnView\nconvert.exe"
** NCONVERT v7.25 (c) 1991-2019 Pierre-E Gougelet (Jan 15 2019/12:05:55) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)
Usage : nconvert.exe [options ...] file ...
Type nconvert.exe -help, for more information
C:\Users\OM>"\\vmware-host\Shared Folders\Bureau\try\autoconvert.bat"
C:\Users\OM>nconvert -o c:\try\%.jpg -out jpeg -q 80 "c:\input\*.*"
'nconvert' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Re: NConvert pour un débutant
Posted: Sun Mar 31, 2019 9:35 pm
by cday
oliv30 wrote: Sun Mar 31, 2019 8:08 pm
'nconvert' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Yes, that can be a problem:
First, right-click on the nconvert.exe file icon, select Properties, and on the General tab, at the bottom Security, if necessary Unblock the file.
If the problem still exists, first try using the full path to nconvert.exe, for example C:\X\nconvert.exe ...
When NConvert is recognised, note that if
C:\Users\OM>nconvert -o c:\try\%.jpg -out jpeg -q 80 "c:\input\*.*" is your batch file .bat, you will need to double
% to
%% (as in my code) to 'escape' the character in a batch file.