Converting images in flatview to the original folders

Hi.

I'm trying to convert a bunch of images all at once. But they are in separate folders. Is is possible to convert them in flatview and write them to their original folders?

Thanks in advance.

The Image command's "HERE" argument will do that, at least in Opus 10 (I haven't tested what it does with FlatView in Opus 9).

e.g. Image CONVERT=PNG HERE

Works perfectly in Opus 9. Many thanks Leo!

Additional related question: there is this button I use a lot

@dirsonly @nofilenamequoting @nodeselect Copy MOVE FILE WHENEXISTS=rename "{filepath$}\*" HERE delete

Is it possible to change this command to do the same in flatview? So that when I fire the command on the directories in flatview it will move their files one down in the original hierarchy and not down to the directory from wich the flatview is activated?

Copy MOVE FILE {filepath$}* TO {filepath$|....}

That should work.

You might also want to avoid the Delete command, since it will delete the dirs even if they are non-empty. They can be non-empty in this situation if you have two nested dirs with the same name.

Here's one way to fix that, which you could combine with the above line so it also works in FlatView:

viewtopic.php?p=45787#p45787 (link should go to my reply which uses the rmdir command, not to the root post).

Sadly that did not work :frowning: and it has problems with directories containing spaces.

So it doesn't work (what does it do instead?) and it doesn't work even more when there are spaces in the names? :slight_smile:

It works in Opus 10, at least, including with spaces in the names. I haven't checked it in Opus 9.

If you're adapting your original button, remember to either remove the @nofilenamequoting line or add explicit quotes.

Oh haha, sorry about that. I got an error message that it couldn't find the directory. And if there were spaces it was naming the words between the spaces and said it couldn't find them..But i removed the @nofilenamequoting and now I don't get an error message but it still doesn't move everything one up but moves everything 2 up. :confused: so test\test1\one\a.txt becomes test\a.txt Any ideas? or is it just because of dopus9?

Take out the .. to go one level up instead of two.

Perfect. Thanks a lot Jon.!