renamer, copy in the same folder

Started by hannes_hab, August 13, 2021, 01:35:55 PM

Previous topic - Next topic

hannes_hab

how to tell the renamer to make a copy in the same folder?

Mario

Use the folder name of the source file in your Copy step?

Tip: You can copy a file in the same folder by using Ctrl+C, Ctrl+V
IMatch ensures that the names are unique.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

sure - I know that - but it works only for one action - is there no function for the current folder - or for new folders relative to the current folder

thrinn

Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

I don't understand the problem. What means "works only for one action"?
You can use the variable that gives you the folder of the source file everywhere, it will always be correct.

Show us what you are doing with the Renamer, which steps you have and which variables you use.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

thank you "thrinn" maybe that helps - i will try it

Mario

#6
If you cannot get the variable to work, folder patterns will also not work. Both access the same information.
You want to copy the file into the same folder as the source file: The folder pattern {p0} and the variable {File.Path} will work both because both allow you to specify the same folder.

Again, it would help if you would show us what you are doing, and what does not work.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

1)
copy and paste - works!
2)
I wanted to make a copy of a file and rename in as specific way it to work with it with another program (original file-name + _test.NEF ).
But no copy was made but a move and rename was the result (settings for the renamer - see screenshot) - I thought the original file would remain  and a new copy should be there ???
3)
I want to make a rename (original file-name + _test.NEF and copy in a new sub-folder named "HANNES")
this works too!

Mario

I used what you did and it worked nicely.

The Renamer renames the original file to contain ..._test
Then it makes a copy of the file, producing a file with the name ..._test-1 in the same folder.

Remember: The Renamer is for renaming files. It's not a tool to copy files around or copy files under a new name.
It first renames the source file according to your steps.
Then it copies the file in the Copy step.

In my case, the file "DSC12345.jpg" was renamed to "DSC12345_test.jpg" and copied to "DSC12345_test-1.jpg"
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

thank you - I think I understand - but would it make a difference if the copy would be the first step (on top) and he then rename would follow?

Mario

Copy/Move steps are always last. See the Renamer help topic for details.

You can move / copy without renaming (Copying or Moving without Renaming) but you cannot copy/move a file and then rename the copy.
This is not supported and would cause a lot of extra complexity. Consider files moved/copied to a folder not in the database, duplicate file name handling, buddy file management etc. I don't want to go there.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook