Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Preserving directory and sub-directory structures when converting (Read 598 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!