-save_opt
-save_opt key is used to specify additional conversion parameters:
- allowing/blocking conversion of files from subfolders of the source folder,
- preserving/ignoring the source folder structure in the resulting folder,
- opening the resulting folder when conversion is finished,
- recording/viewing the log file.
The general appearance of the keys is as follows:
-save_opt [Parameter 1]:[Value 1]…[Parameter 4]:[Value 4]
Parameter is additional parameter name. Can accept one of four possible values:
- convert_subfolders - this parameter allows/blocks conversion from subfolders of the existing folder.
- restore_subfolders - if this parameter is switched on, the resulting folder will contain the structure of the source folder with all its subfolders. If this parameter is switched off, all files from all subfolders of the source folder will be saves in the specified target folder.
- open_target - switch this parameter on to open the target folder in Windows Explorer when conversion is finished.
- log - switch this parameter on to create an information file containing conversion details in the target folder.
Value the value of the specified parameter. The value can be either yes (the parameter is switched on) or no (the parameter is switched off).
general example
ICPCL.exe -convertto bmp -source "C:\Original files" -dest "C:\Converted files" -save_opt convert_subfolders:yes restore_subfolders:yes open_target:no log:no
tips
-
Usually all additional parameters are set in the script. Hence, if you use a script, -save_opt key shold only be used if you want to change these parameters. You do not have to specify all four parameters. Mention those whose settings you want to change.
Example:
ICPCL.exe -script "tobmp.icp" -source "c:\my fotos\*.jpg" -save_opt log:no -
Convert_subfolders and restore_subfolders parameters should only be used if -source key contains a folder and not a separate file.
Example:
ICPCL.exe -dest "{My Documents}" -convertto bmp -save_opt convert_subfolders:yes -source "c:\my fotos" -
If restore_subfolders parameter is switched off, there may be a situation when there are objects with same names among source files. In this case they'll be renamed in accordance with the algorithm specified in -target_opt key.
Example:
ICPCL.exe -dest "{My Documents}" -convertto bmp -source "c:\my fotos\*.*" -save_opt restore_subfolders:yes -target_opt if_exists:auto_overwrite