Page 1 of 1
NConvert recursive processing
Posted: Mon Aug 05, 2019 1:38 pm
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
Re: Nconvert batch processing
Posted: Mon Aug 05, 2019 3:24 pm
by xnview
you can make a script to process all subfolders
Re: Nconvert batch processing
Posted: Mon Aug 05, 2019 5:19 pm
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.
Re: NConvert recursive processing
Posted: Mon Aug 05, 2019 6:03 pm
by springbok12
Problem is I know bugger all about scripting in bat files etc
Re: NConvert recursive processing
Posted: Mon Aug 05, 2019 6:37 pm
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.