嗨,我在批处理编程方面还很新
我想通过snmpwalk检查一些设置,但是为了使其更具表现力,我想将结果存储到变量中并在
之后对其进行排序For /f "Usebackq Delims=" %%A in (
"List.txt") do (
SnmpWalk %snmp% -os:.1.0.8802.x.x.x.x -op:.1.0.8802.1.x.x.x.x -q -r:%%A
"result in to var 1"
SnmpWalk %snmp% -os:.1.0.8802.x.x.x.x -op:.1.0.8802.1.x.x.x.x -q -r:%%A
"result in to var 2"
SnmpWalk %snmp% -os:.1.0.8802.x.x.x.x -op:.1.0.8802.1.x.x.x.x -q -r:%%A
"result in to var 3"
SnmpWalk %snmp% -os:.1.0.8802.x.x.x.x -op:.1.0.8802.1.x.x.x.x -q -r:%%A
"result in to var 4"
ehco %var1% "some grafik" %var2% "some grafik" %Var3%
ehco "some grafik %var4%
我的方法是否错误?