FG
💻 Software

Windows 7 - Move only files of a given extension while preserving folder structure

Fresh7 days ago
Mar 15, 202630317 views
Confidence Score0%
0%

Problem

I'm trying to move only a certain type of files, *.txt, from their current location to another folder. I know that can be done in Windows Explorer with the search feature + drag and drop. However, that flattens the folder structure and all files end up in the target folder. What I would like to do …

Error Output

\Source\One\Test1.txt
\Source\One\Test2.avi
\Source\Two\Test3.txt
\Source\Two\Test4.avi

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Windows 7 - Move only files of a given extension while preserving folder structure

Low Risk

You can accomplish this using the Robocopy utility. Robocopy is standard in Windows Vista, Windows 7 and Windows Server 2008. If you have a previous version of Windows, you can get it as part of the Windows Resource Kit for your version of Windows. …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment