Filename of Auto-filename in NON-Overwrite Mode

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
UKoenig
Posts: 2
Joined: Thu Aug 04, 2011 1:28 pm
Location: Germany

Filename of Auto-filename in NON-Overwrite Mode

Post by UKoenig »

Hello,

is there a way, to know the Filename is used in NON-overwrite-mode ?
Because I want to show a Preview of the created Image, I have to know the Name.
In overwrite-mode, there is no Problem ( just 1 Name ),
but using NON-overwrite-mode, I getting Filenames like Image1_1.jpg, Image1_2.jpg ...
The counter detects the last used number.

Sample :
cOldfile = Image1.jpg
cNewfile := _Image1.jpg

the next created Files would have Names : _Image1_1.jpg, _Image1_2.jpg ......

xBase-Syntax :
cScript := '-quiet -o ' + cNewfile + ' -swirl ' + ALLTRIM(STR(nSwirl)) + ' -overwrite ' + cOldfile

Is there a way, to know the new defined Filename ?

Best Regards
Uwe :?:
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Filename of Auto-filename in NON-Overwrite Mode

Post by xnview »

UKoenig wrote: Is there a way, to know the new defined Filename ?
It seems that you know already how to find new filename??
Pierre.
Post Reply