Move files from sub-folder to parent folder

Bulk Rename Utility How-To's

Move files from sub-folder to parent folder

Postby pockets » Tue Nov 30, 2021 8:29 pm

Re-naming the files themselves isn't necessary for what I want to do, I just want to move a bunch of files from their current folder, into their parent folder.

I have these folders:
C:\Users\#*#*#*\Desktop\Upload Me\Taya Parker\Straw Hat\1600wm
C:\Users\#*#*#*\Desktop\Upload Me\Taya Parker\Roman Woman\1600wm
C:\Users\#*#*#*\Desktop\Upload Me\Taya Parker\Private Time\1600wm
C:\Users\#*#*#*\Desktop\Upload Me\Taya Parker\Private Dancer\1600wm

And so on... about twenty folders.
I want to empty the 1600wm folders and move the files into the parent folder all at once if that's possible. Is there a way to do this?
Posts: 1
Joined: Tue Nov 30, 2021 8:16 pm

Move files inside 1600wm folders up one directory

Postby Luuk » Fri Jan 07, 2022 10:12 pm

First inside Filters(12), to only put checkmarks inside for "Files" and "Subfolders".
Then there can be two ways to only move files that are inside 1600wm folders up one-directory...

Method-1: With having the paid version, the javascript code can be like...
if (/.*\\1600wm\\$/.test(object('folder'))) {newName = '..\\' + name}

Method-2: First to put a counterfeit drive like XYZ:\ in the top left folder-path, and press enter to destroy the file-listing.
Then use any application to list all of the 1600wm folders, and then drag only these folders into the BRU file-listing.
Like with the explorer.exe, you could list all of the folders with a search like... type:folder name:(~1600wm)
Then Add(7) with a "Prefix" like ..\ can move all of the files inside 1600wm folders, up one directory.
Posts: 384
Joined: Fri Feb 21, 2020 10:58 pm

Return to How-To