Page 1 of 1

Multi-step process

Posted: 19 Feb 2020 17:53
by trainwreck
New XYplorer user here.

I have to manage some files for a load process on a recurring basis. Is it possible to do the following:
1. Copy the selected file to a specific directory
2. Rename the file to a specific name
3. If the file already exists with that name in the directory (it will), rename the existing file so as not to cause a conflict.

Is there a way to handle that? Is that what scripting is for?

Re: Multi-step process

Posted: 20 Feb 2020 08:50
by RalphM
Welcome to the forum!

Yes, this sounds like a perfect starting point for a script.
Sounds all quite straightforward apart from step 3, usually a rename on collision works the other way around with the newly added file being renamed to avoid the collision, so you might have to work around this a bit, i.e. pre-check existence of filename and then rename the old file first before copying the new one.

Have fun & Good luck.