Multi-step process

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
trainwreck
Posts: 4
Joined: 19 Feb 2020 16:29

Multi-step process

Post 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?

RalphM
Posts: 2042
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Multi-step process

Post 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.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

Post Reply