Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Duplicate File Structure with PowerShell

$
0
0

Summary: Use Copy-Item to duplicate content with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to duplicate content?

Hey, Scripting Guy! Answer Use Copy-Item—for example, to duplicate all files and folders from C:\Foo to D:\Foo, run:

Get-Childitem C:\Foo D:\Foo -recurse


Viewing all articles
Browse latest Browse all 3333

Trending Articles