diff --git a/directory.ps1 b/directory.ps1 new file mode 100644 index 0000000..7110902 --- /dev/null +++ b/directory.ps1 @@ -0,0 +1,9 @@ +function Copy-Directory() { + <# + .SYNOPSIS + Copying directory and contents to a new directory. + .DESCRIPTION + #> + + Copy-Item -Path "C:\Dir_OLD" -Destination "C:\Dir_NEW\Logs" -Recurse +} diff --git a/file.ps1 b/file.ps1 index adb735c..1b44f49 100644 --- a/file.ps1 +++ b/file.ps1 @@ -112,13 +112,3 @@ function Copy-File() { Copy-Item -Path "C:\Dir_OLD\*" -Destination "C:\Dir_NEW" -Recurse } - -function Copy-Directory() { - <# - .SYNOPSIS - Copying directory and contents to a new directory. - .DESCRIPTION - #> - - Copy-Item -Path "C:\Dir_OLD" -Destination "C:\Dir_NEW\Logs" -Recurse -}