Загрузка страницы

PowerShell Quickie: Sorting images by date changed

In this PowerShell Quickie episode we're creating a script that will sort your images into folders by the date that they were last edited (or taken if you haven't edited you images).

Script:
$Source = "C:\Users\martin\Desktop\Images"
$Destination = "C:\Users\martin\Desktop\SortedImages"

Get-ChildItem $Source | foreach {
$Folder = Get-Date $_.LastWriteTime -Format yyyy-MM-dd
$Folder = $Destination + "\" + $Folder
if (!(Test-Path $Folder)) {New-Item $Folder -ItemType Directory}
Copy-Item $_.FullName -Destination $Folder -Container
}

PowerShell Quickie Playlist: https://www.youtube.com/playlist?list=PLfYIS7PWFoq6WiAjpA_fG3ooUlD40MZgk

Facebook: https://www.facebook.com/TechNutYouTube

Видео PowerShell Quickie: Sorting images by date changed канала TechNut
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
11 июля 2015 г. 17:41:09
00:03:47
Яндекс.Метрика