|
-
Apr 21st, 2009, 04:14 AM
#1
Thread Starter
Lively Member
Catch error of cmd command VB6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|