1
0
mirror of https://github.com/jaapbrasser/SharedScripts.git synced 2025-12-24 21:51:38 +02:00

Added comment-based help

This commit is contained in:
Jaap Brasser
2019-08-09 16:59:33 +02:00
parent a385fb3616
commit ca75b59fc2

View File

@@ -1,4 +1,14 @@
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null
$InputBox = [Microsoft.VisualBasic.Interaction]::InputBox("Let's convert this to base64", "Sabrina's App", $null)
$InputBox = [convert]::ToBase64String([char[]]$InputBox)
[Microsoft.VisualBasic.Interaction]::MsgBox($InputBox,0,"Sabrina's App")
function ConvertTo-Base64GUIExample {
<#
.SYNOPSIS
Function to showcase some of the PowerShell GUI capabilities
.DESCRIPTION
This function contains various examples of using the GUI capabilities of both Windows PowerShell and PowerShell (Core). This is inteded to be used as a reference for those interested in building basic GUIs with PowerShell
#>
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null
$InputBox = [Microsoft.VisualBasic.Interaction]::InputBox("Let's convert this to base64", "Sabrina's App", $null)
$InputBox = [convert]::ToBase64String([char[]]$InputBox)
[Microsoft.VisualBasic.Interaction]::MsgBox($InputBox,0,"Sabrina's App")
}