Go-Fonts
Sets the working dir to the fonts folder
#requires -version 5.1
try {
$path = [Environment]::GetFolderPath('Fonts')
if (-not(Test-Path "$path" -pathType container)) {
throw "No fonts folder at: $path"
}
Set-Location "$path"
$files = Get-ChildItem $path -attributes !Directory
"??$path with $($files.Count) font files entered."
exit 0 # success
} catch {
"?? Error: $($Error[0])"
exit 1
}This script has no configurable parameters.