Here’s a tiny PowerShell script to delete all files while maintaining directory structure. This script will work on both files with and without an extension
Snippet
After coming back from a trip recently, I imported all the photos from my camera to my computer by automatically renaming them using the Exif Data in the format Month-Day-Year-Filename (%m-%d-%Y-%f): 05_17_2018_DSC_5560.NEF. After editing the photos, each NEF file would also have a JPEG and a XMP file. While backing […]
In this post we will see how to copy and move files and folders selectively using PowerShell. We are going to use Copy-Item cmdlet with a few switch parameters for copying files. Similarly, with Move-Item cmdlet, you can use all the examples for moving the desired files.
Easily exclude specific post, category and author posts from appearing in your main WordPress site feed, without using any plugin.
WordPress snippet to rename dashboard menu items to anything you want.