Update mostrar_hola.cmd
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
:: Script: mostrar_hola.cmd
|
||||
:: Objetivo: Mostrar el mensaje "HOLA" en pantalla.
|
||||
|
||||
:: Ejecuta un comando de PowerShell que muestra una ventana de mensaje de sistema.
|
||||
powershell -Command "[System.Windows.MessageBox]::Show('HOLA')"
|
||||
:: Comando de PowerShell corregido:
|
||||
:: Agrega el ensamblado PresentationFramework para hacer que [System.Windows.MessageBox] este disponible.
|
||||
|
||||
powershell -Command "Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('HOLA')"
|
||||
|
||||
goto :eof
|
||||
Reference in New Issue
Block a user