From a385fb36162abf1649bd00098b96485b10d125f4 Mon Sep 17 00:00:00 2001 From: Jaap Brasser Date: Fri, 9 Aug 2019 16:55:57 +0200 Subject: [PATCH] Created outline of ConvertTo-Base64GUIExample --- ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 diff --git a/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 b/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 new file mode 100644 index 0000000..aaf7785 --- /dev/null +++ b/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 @@ -0,0 +1,4 @@ +[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") \ No newline at end of file