rootpath for backupto?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

rootpath for backupto?

Post by tiago »

Is there any trick I can use so I can get the rootpath effect applied to backupto()?
Power-hungry user!!!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: rootpath for backupto?

Post by admin »

Currently not, but you can use copyto() and enable Custom Copy. That would be equivalent to backupto() if you configure Custom Copy via GUI instead of via scripting function parameters.

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: rootpath for backupto?

Post by tiago »

cool tip, thanks. It never comes to mind that custom copy allows preservation of items dates, so that trick may do it for me.
Power-hungry user!!!

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: rootpath for backupto?

Post by tiago »

backupto() lacks rootpath support and I still miss it as we don't have a correspondent script settings() for move/copy/back to change them on the fly as far as I can see. Backupto() has everything!
copyto() lacks on_collision support as I'm still being prompted on folder and file replacement ("confirm folder replacement" or similar dialog, "yes to all", "confirm file replacement", "yes to all").
But "yes to all" only applies to each loop, so I still end with tons of such prompts!
My goal is to search for a bunch of files and back them up with their full parent folder structure contents, plus subfolders.
Script is great except by those prompts.

:!: folderreport is amazing :!:
Power-hungry user!!!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: rootpath for backupto?

Post by admin »

A scripting command CustomCopy() is planned that will have all you need.

Post Reply