NConvert recursive processing

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

Moderators: XnTriq, xnview

Post Reply
springbok12
Posts: 2
Joined: Mon Aug 05, 2019 1:32 pm

NConvert recursive processing

Post by springbok12 »

I want to run nconvert to run in my Flight Simaulator Aircraft directory and all the sub directories to convert dds textures (used by Flight Simualtor X) to 32 bit BMP format (used by Flight Simulator 2004) . I currently have to laboriously copy nconvert in to each directory.
Can anybody help me so as to get nconver to run on all files in all sub directories.

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

Re: Nconvert batch processing

Post by xnview »

you can make a script to process all subfolders
Pierre.
cday
XnThusiast
Posts: 2526
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Nconvert batch processing

Post by cday »

xnview wrote: Mon Aug 05, 2019 3:24 pm you can make a script to process all subfolders
If you are using NConvert in Windows, you need to use a simple batch file .bat consisting of a For /D loop that runs you existing command line for each directory in turn...

Note: I'm not sure whether that will work for more than one sub-directory level.
springbok12
Posts: 2
Joined: Mon Aug 05, 2019 1:32 pm

Re: NConvert recursive processing

Post by springbok12 »

Problem is I know bugger all about scripting in bat files etc
cday
XnThusiast
Posts: 2526
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: NConvert recursive processing

Post by cday »

springbok12 wrote: Mon Aug 05, 2019 6:03 pm Problem is I know bugger all about scripting in bat files etc
I sympathise, I never expected to use it myself and my limited knowledge was hard won, it can be a steep learning curve and very unforgiving...

You could try Googling 'for loop /d cmd' and see if you can make any sense of it: the code required is basically only one or two lines but the notation is very cryptic. It is really a question of recognising a pattern, of several that occur in the examples given, that you can edit to use yourself, without really understanding what is happening.

If I had more time I could probably help more, but please have at least a quick look yourself and see if you can make any sense of it.
Post Reply