PowerShell/scripts/write-qr-code.ps1
2024-10-01 15:24:16 +02:00

33 lines
2.1 KiB
PowerShell
Executable File

<#
.SYNOPSIS
Writes a QR code
.DESCRIPTION
This PowerShell script writes "Hello World" as QR code to the console output.
.EXAMPLE
PS> ./write-qr-code.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄▄▄▄ ▄ ▄▄▄ ▄▄▄▄▄▄▄ " -foregroundColor black -backgroundColor white
Write-Host " █ ▄▄▄ █ ▄▄▀█ █ ▄▄▄ █ " -foregroundColor black -backgroundColor white
Write-Host " █ ███ █ █▀ ▄▀ █ ███ █ " -foregroundColor black -backgroundColor white
Write-Host " █▄▄▄▄▄█ ▄▀█▀█ █▄▄▄▄▄█ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄ ▄ ▄▄▄██▄ ▄▄▄ ▄ " -foregroundColor black -backgroundColor white
Write-Host " ▀ █ ▀▄▄▀█▀▀█▀█▀█▀▀▀▄█ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄██▀▀▄▄█ ▄▀▄▄▄▀ ▀ ▀▄ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄▄▄▄ ▀▀██▄▄██▄ ▀ ▀ " -foregroundColor black -backgroundColor white
Write-Host " █ ▄▄▄ █ ▀▄ ▄▀ ▀ ██▀▀ " -foregroundColor black -backgroundColor white
Write-Host " █ ███ █ █▄ ▄ ▀▄ ▀█▀ " -foregroundColor black -backgroundColor white
Write-Host " █▄▄▄▄▄█ █▀▄█ ███▀ ▄ ▀ " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
exit 0 # success