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
NConvert recursive processing
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 45233
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- XnThusiast
- Posts: 4234
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Nconvert batch processing
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.
-
- Posts: 2
- Joined: Mon Aug 05, 2019 1:32 pm
Re: NConvert recursive processing
Problem is I know bugger all about scripting in bat files etc
-
- XnThusiast
- Posts: 4234
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: NConvert recursive processing
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...springbok12 wrote: ↑Mon Aug 05, 2019 6:03 pm Problem is I know bugger all about scripting in bat files etc
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.