![]() |
Фильтр при копировании
Код:
Get-ChildItem -Path \\Backup\1c\ -Recurse -Include "*.dt", "*.zip" | where CreationTime -like *2014* | foreach {Move-Item $_.fullname E:\} Как указать дату меньше допустим 01.02.2015? |
Код:
Get-ChildItem -Path \\Backup\1c\* -Exclude file | Get-ChildItem -Recurse -Include "*.dt", "*.zip" | where CreationTime -lt (Get-Date "01.02.2015") Код:
Get-ChildItem -Path \\Backup\1c -Recurse -Include "*.dt", "*.zip" | where {$_.CreationTime -lt (Get-Date "01.02.2015") -and !$_.FullName.Contains("\\Backup\1c\file")} |
red.army@vk,
Код:
(Get-ChildItem -Path \\Backup\1c\ -Recurse -Include "*.dt", "*.zip") -notmatch '\\file' | where CreationTime -like *2014* | foreach {Move-Item $_.fullname E:\} |
Время: 11:27. |
Время: 11:27.
© OSzone.net 2001-