Move file to a new folder

hello,

i have a lot of movie and i want to put each movie in a movie folder.

my actual folder structur is :

Photos
---/2010
------/Paris
-----/raw

in my raw folder i have .raw files and .mov files

i want to create a movie folder in /paris and move .mov into the new folder.

i make a button with this :

createfolder NAME="..\movie" READAUTO=no
Copy MOVE TO="..\movie"

it works but it dont works if i am in a collection. it create a new collenction named Video.

is there another Solution. ?

thanks.

That's because Opus is operating off of the current collection path as the location for your use of "..". You need to make it operate from the actual file location perspective, which you can do like so:

@nofilenamequoting CreateFolder NAME="{f|..\..}\movie" READAUTO=no Copy MOVE TO="{f|..\..}\movie"
Be aware however, that when you do this - the Opus file collection will lose track of the file. Don't know if you care about that or not... if you do care, there might be some other tricks to add the files BACK to the collection. Not time to look at that now though - maybe later.

thank you,

it works perfectly :smiley: