From 9e0888eee3e2ab48b874bf4350f80055ec9bf222 Mon Sep 17 00:00:00 2001 From: Eduardo Mosqueda Date: Mon, 3 Nov 2025 11:39:25 -0600 Subject: [PATCH] Update mostrar_hola.cmd --- mostrar_hola.cmd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mostrar_hola.cmd b/mostrar_hola.cmd index c4560ce..eb12592 100644 --- a/mostrar_hola.cmd +++ b/mostrar_hola.cmd @@ -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 \ No newline at end of file