question

MillerEchagarreta-3609 avatar image
0 Votes"
MillerEchagarreta-3609 asked ·

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

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-supported
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Patrick

0 Votes 0 ·
DSPatrick avatar image DSPatrick MillerEchagarreta-3609 ·

You're welcome.

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


0 Votes 0 ·

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

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





· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.