Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $SUB = '101010'
- $file = get-item "\\SERVER\PIC*" -Exclude *dev*, *nic*
- $list = $file.FullName
- $say = ForEach ( $l in $list ){ Get-ChildItem $l -Depth 0 |
- Where-Object { $_.PSIsContainer -and $_ -match $SUB |
- select $_.FullName }
- }
- $SUBloc = $say.FullName
- cls
- foreach ($s in $SUBloc){
- Write-host "Copying... $s\R to $s\L"
- Copy-Item "$s\R\*" -Destination "$s\L\"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement