Created
May 3, 2018 19:40
-
-
Save billkindle/f9b3fb7c4646307830ccff2d1cad8f13 to your computer and use it in GitHub Desktop.
Simple way to copy a directory folder structure without copying contents of the folders.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
This script will only copy folder structure found in the $Source | |
path to the $Target path. | |
#> | |
# Adjust paths to suite needs | |
$Source = [path] | |
$Target = [path] | |
# This will only copy folders | |
Copy-Item -Path $Source -Destination $Target -Filter {PSIsContainer} -Recurse -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment