FG

How do I move every file in a tree to the root of the tree?

Fresh3 days ago
Mar 15, 20264394 views
Confidence Score0%
0%

Problem

I have a folder (let's call it A) with lots of subfolders B, C, D, E, which then again have subfolders B1, B2, B3, ... C1, C2, C3 ... How can I using cmd move all files from all subfolders into the "root" folder A?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I move every file in a tree to the root of the tree?

Low Risk

My original post neglected to include the file's extension in the move command. only returns the basename, you need to use to get both the filename and extension! I hope you haven't mangled your filenames on my account!( From a Command Prompt: If yo…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment