OK, the clock/dolly/heater example is simple. But what if folders AND some of their childs are included in the job AND there are name collisions? I don't have the time to look at Flux's script, but does it handle more complex selection patterns?
You know, moving up only one item can already be a surprisingly complex job. I worked about a week on this some years ago. The danger here is undesired overwrites due to collisions.
problem with move up from search list
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Re: problem with move up from search list
I have no idea, Don. I didn't try anything more complicated than what I posted. That's really the only scenario I use. I wouldn't be moving things from different levels or like-named files into the same folder.admin wrote:OK, the clock/dolly/heater example is simple. But what if folders AND some of their childs are included in the job AND there are name collisions? I don't have the time to look at Flux's script, but does it handle more complex selection patterns?
If there ever is some way to incorporate this into XY maybe it could work like Rich Copy or Tag Copy where MoveUp from search or branch could trigger a prompt to MoveUp from item location or search location.
Windows 10 Pro 22H2
-
admin
- Site Admin
- Posts: 65246
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: problem with move up from search list
Made some tests. The possible side effects are too complex. Sorry.
FAQ | XY News RSS | XY X
Re: problem with move up from search list
All good, Don. Thanks for taking a look anyway :-)
Windows 10 Pro 22H2
-
FluxTorpedoe
- Posts: 904
- Joined: 05 Oct 2011 13:15
Re: problem with move up from search list
All good here too... 
Though just to let you know, the simplistic script just gathers each item's parent folder name and moves them there one by one, that's it!
All the rest (collision management...) being left to XYcopy/Wincopy which logically warn of possible overlaps when necessary.
Never encountered a problem (well, notwithstanding the previous script shortcoming with getpathcomponent()).
Anyway, I just slightly changed the script to only move files that haven't already been moved.
e.g. if folders AND their content are selected to "Power Move Up", the script doesn't try to move the content anymore (less user interaction).
Have a nice day,
Flux
Though just to let you know, the simplistic script just gathers each item's parent folder name and moves them there one by one, that's it!
All the rest (collision management...) being left to XYcopy/Wincopy which logically warn of possible overlaps when necessary.
Never encountered a problem (well, notwithstanding the previous script shortcoming with getpathcomponent()).
Anyway, I just slightly changed the script to only move files that haven't already been moved.
e.g. if folders AND their content are selected to "Power Move Up", the script doesn't try to move the content anymore (less user interaction).
Have a nice day,
Flux
• Scripts: Session Manager
| SlideShow | Collection Manager | Power Launcher | Akelpad syntax highlighting | ...
XYplorer Beta Club