Cómo capturar un texto con operador lógico (>) en un .bat

Miller Echagarreta 1 Reputation point
2021-02-23T19:13:31.917+00:00

Buen dia Compañeros. A ver si alguien me puede ayudar.

Tengo un .bat que desde una aplicacion estoy capturando un texto, el texto viene con diferentes operadores logicos como (>), este es el mensaje original (QOS_INTERFACE_UTILIZATIONOUT = 98.68 from source DEVICE targeting Gi1/0/45(GigabitEthernet1/0/45) has crossed the critical static threshold of >=90.0), pero cuando lo guardo en una variable del .bat me lo corta asi (QOS_INTERFACE_UTILIZATIONOUT = 98.67 from source BOG_CRS_SOT1_SW1.colsanitas.com targeting Gi1/0/45(GigabitEthernet1/0/45) has crossed the critical static threshold of). Si observan, se corta hasta donde esta el operadro logico. Como puedo resolver esto ???. Este es mi .bat.

@Echo off

SET VAR=%*%
echo Prueba Captura con variable %VAR% >> D:\prueba\ConfiguracionCapturaNAS\capturadevariable.log

En el logs me llega de esta manera ----->

Prueba Captura con variable 'QOS_INTERFACE_UTILIZATIONOUT = 98.67 from source DEVICE targeting Gi1/0/45(GigabitEthernet1/0/45) has crossed the critical static threshold of

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,251 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2021-02-23T20:03:34.433+00:00

    QnA forums are currently English only. I'd try asking for help in dedicated forums over here.
    https://social.technet.microsoft.com/Forums/es-es/home

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments