Skip to main content
Topic: Preserving directory and sub-directory structures when converting (Read 192 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Preserving directory and sub-directory structures when converting

Hi. Sorry if this is addressed elsewhere, but I've looked and can't find the answer.

I have a directory that reads as follows:

c:/Input
Input/subdir-1/files*.*
Input/subdir-2/files*.*
Input/subdir-3/files*.*
etc.

I am converting, and I have an /Output folder, and the default is taking all of the files in the subdirectories and putting them all into the /Output folder, all of them. This is not what I want.

What I want is the converted files to go into a directory structure just like existed before. So that I have:

c:/Output
c:/Output/subdir-1/converted-files*.*
c:/Output/subdir-2/converted-files*.*

and so on.

What settings do I do for that?

Thanks.

Re: Preserving directory and sub-directory structures when converting

Reply #1
You'll need to put C:\Output in the Output path>Specify folder.

For the name format, you can use...

Code: [Select]
$replace($directory_path(%path%)\%filename%,C:\Input,)

If it was just one folder deep for all files, you could use

Code: [Select]
%directory%\%filename%

but I thought that was probably unlikely??



Re: Preserving directory and sub-directory structures when converting

Reply #2
Thank you!

 
SimplePortal 1.0.0 RC1 © 2008-2018