Tag: powershell
Get Folder Size in PowerShell
Save as Get-FolderSize.ps1
Zip Each Directory
Zips all directories within a directory into a target
Add Timestamp to Images
ImageMagick needs to be installed, including legacy tools, and in the path Takes files with the format yyyyMMdd.jpg in the current directory, and adds a stamp to the bottom-right corner in the MMM dd yyyy format. Creates a new file named “stamped.yyyyMMdd.jpg”
Open Then Back Up File with PowerShell
Opens a file for editing in a particular editor, then once that process is closed, copies the file to a location for backup.
Merge Zip Files to 7z
This script will retrieve all zip files in a directory, unzip them one at a time into new directories, then add those directories to a .7z file. Useful if you have a collection of zip files with mostly the same contents, where you’ll benefit from combining them together, but you don’t have enough disk space […]
GnuPG Encrypt Files in PowerShell
This script will retrieve all files in the “input” directory and encrypt them, placing the encrypted files in the “output” directory with a GUID file name. This assumes you’ve installed GnuPG for Windows
Convert MKV to MP4 in PowerShell
This script will retrieve all mkv files in the “input” directory and convert them to mp4, placing the new mp4 files in the “converted” directory You need the HandbrakeCLI application Quality 18 seems to be good for DVD video. HD you would want better quality (lower number is better). This burns subtitles into the output, […]
Azure Blob Update Tier
In PowerShell: