mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-16 07:38:15 +02:00
Updated the manuals
This commit is contained in:
@ -10,7 +10,7 @@ Parameters
|
||||
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
@ -36,14 +36,14 @@ foreach ($font in $fontFiles) {
|
||||
# Copy font files to the Fonts folder
|
||||
$destination = "$fontsFolder\$($font.Name)"
|
||||
Copy-Item -Path $font.FullName -Destination $destination -Force
|
||||
|
||||
|
||||
# Add font to registry
|
||||
$fontName = [System.IO.Path]::GetFileNameWithoutExtension($font.Name)
|
||||
$fontRegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"
|
||||
|
||||
|
||||
# For TrueType fonts
|
||||
$fontType = "TrueType"
|
||||
|
||||
|
||||
# Add the registry entry
|
||||
New-ItemProperty -Path $fontRegistryPath -Name "$fontName ($fontType)" -PropertyType String -Value $font.Name -Force
|
||||
}
|
||||
@ -51,4 +51,4 @@ foreach ($font in $fontFiles) {
|
||||
Write-Output "Fonts have been installed successfully."
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/29/2025 20:04:23)*
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:54)*
|
||||
|
Reference in New Issue
Block a user