How to Copy the Folder Structure from One Location to Another Without Copying the Files Themselves

Опубликовано: 24 Июль 2026
на канале: OnlineComputerTips
7,825
39

If you need to copy all of the folders and subfolders from one location to another without copying the files contained in those folders, you can easily do so using the command line or PowerShell.

Commands from the video.

Using Xcopy
xcopy "[SourcePath]" "[DestinationPath]" /t /e

Using PowerShell
Copy-Item -LiteralPath "[SourcePath]" -Destination "[DestinationPath]" -Recurse -Filter {PSIsContainer -eq $true}

#windowstipsandtricks
#xcopy
#powershell
#windows11tips
#windows
#windowstutorials