HI All,
Is there a way to select multiple subfolders and have the content inside moved to the parent folder?
Thank you for your help.
Move files from subfolder to parent folder
Re: Move files from subfolder to parent folder
Configuration | General | Menus, Mouse, Safety | Context Menus | File List...
[x] Flatten Folder [folders only]
[x] Flatten Folder [folders only]
One of my scripts helped you out? Please donate via Paypal
Re: Move files from subfolder to parent folder
Thanks but this isn't it. I needed the files inside the subfolder moved to the parent folder. Unless, I did something wrong or missed a step "Flatten Folder" only moves the folders.
Appreciate the quick reply!!
Appreciate the quick reply!!
-
admin
- Site Admin
- Posts: 64849
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Move files from subfolder to parent folder
No, such a command does not exist ATM. Would be something like "extract here" for folders (instead of archives).
FAQ | XY News RSS | XY X
Re: Move files from subfolder to parent folder
Or simply be scripted...
The empty sub directories aren't deleted by the script... Should they?
Code: Select all
setting "BackgroundFileOps", 0;
foreach($selected, <get SelectedItemsPathNames |>, , "e") {
if (exists($selected) != 2) { continue; }
$files = quicksearch("/f", $selected, "|", "s");
moveto , $files, , 1, 0, 4;
}
One of my scripts helped you out? Please donate via Paypal
Re: Move files from subfolder to parent folder
Hello highend.
the script doesn't work for me.
the script doesn't work for me.
Re: Move files from subfolder to parent folder
And you did what exactly? How many folders where selected, where there any files inside them?
One of my scripts helped you out? Please donate via Paypal
Re: Move files from subfolder to parent folder
Is there a way to tag multiple dirs to move as this only does 1 folder?highend wrote: ↑09 Sep 2019 14:07 Or simply be scripted...
The empty sub directories aren't deleted by the script... Should they?Code: Select all
setting "BackgroundFileOps", 0; foreach($selected, <get SelectedItemsPathNames |>, , "e") { if (exists($selected) != 2) { continue; } $files = quicksearch("/f", $selected, "|", "s"); moveto , $files, , 1, 0, 4; }
Re: Move files from subfolder to parent folder
The script processes multiple selected folders as well, as long as they have the same parent dir
One of my scripts helped you out? Please donate via Paypal
Re: Move files from subfolder to parent folder
I'm not sure what I'm doing wrong then cause if I selected 2 or more folders it doesn't move anything but if I select 1 folder then it moves it correctly. Can you show me the light?
Here is my folder structure:
d:\temp\
d:\temp\test1\move1.txt
d:\temp\test2\move2.txt
d:\temp\test3\move3.txt
I'm trying to move all 3 of those files to d:\temp
XYplorer Beta Club