Command to turn off monitor in Windows 10

I wanted to turn off my monitor in Windows 10, while listening to music, rather than wait for the Power plan “Turn off the display” timer to kick in. Hmmm, seems Windows has never improved, because I recall having this requirement back-in-the-day - haha, that was during my first project ever, when I was involved in some Win32 development… ...

12 Mar 2021

PowerShell Pipeline to Rename Files

For me, Microsoft PowerShell is hard! I can’t wrap my mind around data pipelines (|). Instead, I keep reverting to if/then, loops and other traditional programming paradigms, similar to what I’d do in UNIX shell! ...

30 Dec 2019

PowerShell to monitor for deleted, renamed or moved files (part 2)

This is part 2, of my attempt to “sync” photos I deleted on my desktop to my SD card (you can read part 1 first). In this post, I try to use PowerShell with .NET framework to (try) monitor for file system changes, and output to a batch file that “replicates” the ren (rename) and del (delete) to files and folders. ...

17 Jun 2018

PowerShell to list deleted files (part 1)

I have an unusual workflow when copying photos from my camera’s SD card to my Windows desktop. For any photos I my desktop, I want to also delete on the SD card. In this post (part 1 of 2), I describe my PowerShell script to “repeat” what I deleted on the desktop on the SD card. In my next post, part 2, I expand the PowerShell script to (try) monitor for file system changes instead. ...

16 Jun 2018