Hi everyone!

I'm building a VB6 application that is using NET SNMP and I'm running the SNMP commands just like dos commands in command prompt. I'm putting the command result in a txt file so I can use it in windows.

My problem is: when I have an error in the "DOS" command the output (the error description provided by DOS) is not written in my txt file.
How can I catch the error code?

Command Ex: snmpwalk -v 2c -c Community IP OID >>C:\Windows\file.txt