Update mostrar_hola.cmd

This commit is contained in:
2025-11-03 11:39:25 -06:00
parent 37c42d703e
commit 9e0888eee3

View File

@@ -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