As a way to kick off migration from Reddit to Lemmy, let’s start with a classic thread. So, what have you done with PowerShell this month?
For bonus imaginary points, have you done anything in regards to the Great Reddit Migration?
As a way to kick off migration from Reddit to Lemmy, let’s start with a classic thread. So, what have you done with PowerShell this month?
For bonus imaginary points, have you done anything in regards to the Great Reddit Migration?
Wrote a C# powershell module with two commands, one for retrieving tags/keyword metadata from passed in imagefiles, and one for creating windows shortcuts from passed files.
Import-Module .\PSGetTagMetadata.dll # Find all jpg and png images with just one tag, and create a shortcut to them. $myfiles = gci -Path "C:\users\username\Pictures\" -Recurse -Include "*.jpg","*.png" | Get-TagMetadata | ? { $_.Keywords.Count -eq 1 } $myfiles | % { $_.File } | Set-Shortcut
It can still be improved upon, of course, but for the moment it did what I needed.