Windows 10 - rename file name with template?

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

Moderators: XnTriq, xnview

Post Reply
NoPostageNecessary
Posts: 3
Joined: Sat Jul 25, 2020 9:01 pm

Windows 10 - rename file name with template?

Post by NoPostageNecessary » Sat Jul 25, 2020 9:25 pm

Hi,

Is there a way to use XnShell to rename a file to have the dimensions of the image?

e.g., file https://www.xnview.com/assets/img/app-xnsoft-512.png

After downloading as app-xnsoft-512.png I'd like to rename it to have a trailing dash + dimensions: app-xnsoft-512-175x175.png

I rarely need to do this in bulk so XnView seems like overkill to me. I looked at nConvert v7.41 but there only appear to be a limited number of ways to modify the filename:

Code: Select all

-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
    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

User avatar
xnview
Author of XnView
Posts: 33612
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Windows 10 - rename file name with template?

Post by xnview » Wed Aug 19, 2020 12:03 pm

currently you can't with nconvert, only with XnView
Pierre.

NoPostageNecessary
Posts: 3
Joined: Sat Jul 25, 2020 9:01 pm

Re: Windows 10 - rename file name with template?

Post by NoPostageNecessary » Wed Aug 19, 2020 7:47 pm

OK, thanks for the reply, I'll give XnView a try.

Post Reply