How to run a DOS process and get ErrorLevel
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
-
I need to run a DOS process application and get the final ErrorLevel. Three questions: a) How can i execute from Vb.net a) How can i get the final ErrorLevel. b) Is possible to redirect output stream data process to a form on my applicacion. regards
Hi, have a look at the Process class. You will be interested in the Start() method, the ExitCode property, and others as well. And there are plenty of examples here on CodeProject. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google