Skip to content

Instantly share code, notes, and snippets.

@pranlawate
Forked from shalithasuranga/Win_messageBox1.bat
Created January 26, 2021 16:06
Show Gist options
  • Save pranlawate/b5ddc8d34680f830dd941433b6f4de04 to your computer and use it in GitHub Desktop.
Save pranlawate/b5ddc8d34680f830dd941433b6f4de04 to your computer and use it in GitHub Desktop.
@echo off
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Hello World', 'This is an example', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment