How to move files in multiple subfolders up one folder level?

I have a folder tree that looks like the following:

• Photo Album
	○ SF-1
		- Images
			□ lots of individual image files
	○ SF-2
		- Images
			□ lots of individual image files
              …                  

	○ SF-n
		- Images
			□ lots of individual image files

I'm trying to figure out the best way to move all of the files in the Images subfolders up one level without having to do it manually. So, the above tree would end up looking like the following:

• Photo Album
	○ SF-1
		- lots of individual image files
	○ SF-2
		- lots of individual image files
              …                  

	○ SF-n
		- lots of individual image files

What's the best way to do this in Directory Opus? Or, should I be pursuing another option (e.g., like using a .bat command procedure)?

Thanks,
Rob

Select folders SF-1, SF-2, SF-3. . .
Try

@dirsonly
Rename PATTERN="*" TO="{filepath|.}*" AUTORENAME RECURSE HERE

What do {filepath|.} and HERE do? These features seem to be undocumented.

:one: Use Find to get a list of your Images folder.

:two: Run

Rename FROM={filepath}* TO={filepath|..}*

on them.

:three: Check if the Images folder are empty, then delete them.

Here's a demo folder to safely test the routine:

PhotoDemo.zip (80.5 KB)

The path to the selected folders? I don't know, I tested and it worked. . .

If you don't mind clarifying: Step 2 says "Run". Where exactly am I running Rename from? Is that inside a DO script or what?

Thanks,
Rob

Commands like this usually are run from a simple button. Here's one you can copy-paste to a toolbar:

<?xml version="1.0"?>
<button backcol="none" display="label" textcol="none">
	<label>45094</label>
	<icon1>#newcommand</icon1>
	<function type="normal">
		<instruction>@nodeselect</instruction>
		<instruction>Rename FROM={filepath}* TO={filepath|..}*</instruction>
	</function>
</button>

Want to learn more? Read here:

Thanks... That's extremely helpful!

Also, it answers another question I was going to ask. I was going to ask where I can go to learn how to do scripts.

Have a great weekend!
Rob