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