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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![HP Gen8 Microserver Part 7: Optimizing](https://i.ytimg.com/vi/t0V8Tx7AyrM/default.jpg)
![Upgrading to Windows 10](https://i.ytimg.com/vi/z6ygyI584gE/default.jpg)
![Minecraft: Server Setup](https://i.ytimg.com/vi/vjYP-xre_qw/default.jpg)
![Overheating laptop repair](https://i.ytimg.com/vi/Yt1M3nvVft4/default.jpg)
![PowerShell Quickie: Deleting unused computers from AD](https://i.ytimg.com/vi/MsKBk14WHT0/default.jpg)
![TeamSpeak: Server Setup](https://i.ytimg.com/vi/X3XHjn-EG4s/default.jpg)
![Getting started with Hyper-V on Windows 8 or Windows 10](https://i.ytimg.com/vi/fFmpdgFilBg/default.jpg)
![DHCP - In a (Tech)nutshell](https://i.ytimg.com/vi/aJN1E5Y60ec/default.jpg)
![HP Gen8 Microserver Series Part 1: Intro and overview](https://i.ytimg.com/vi/hqTbCt8GVlk/default.jpg)
![HP Gen8 Microserver Series Part 4: Installing Hyper-V](https://i.ytimg.com/vi/OvABTW2sfxc/default.jpg)
![HP Gen8 Microserver Series Part 2: Upgrading](https://i.ytimg.com/vi/tg03tfNJnmY/default.jpg)
![30 TB NAS - Synology DS1515+ - Unboxing and setup](https://i.ytimg.com/vi/4bZchenuZoE/default.jpg)
![Exchange 2013 - Part 1: Pre-reqs and setup](https://i.ytimg.com/vi/AS9uAA-m16E/default.jpg)
![Port forwarding - In a (Tech)nutshell](https://i.ytimg.com/vi/xw-eGz_D4Rs/default.jpg)
![HP Gen8 Microserver Series Part 3: Configuring](https://i.ytimg.com/vi/6mJRZWXUKVE/default.jpg)
![Windows Server 2012: VPN Setup](https://i.ytimg.com/vi/2yC94ajZzms/default.jpg)
![HP Gen8 Microserver Series Part 5: Installing ActiveDirectory](https://i.ytimg.com/vi/SqvHe59PACU/default.jpg)
![Windows Server 2012: IIS Website and FTP Setup](https://i.ytimg.com/vi/kbErPceKtjQ/default.jpg)
![Be quiet! - Synology DS1515+ - Fan upgrade](https://i.ytimg.com/vi/RceKyLfSEDc/default.jpg)
![CS:GO - Dedicated server setup - SteamCMD GUI](https://i.ytimg.com/vi/WJSKJma_Omw/default.jpg)