M
Muffin
I am trying to capture the out put of a command line program. Let say ping
or maybe better yet nslookup. I would like to launch and then capture all
the output , redirect it I guess to a string variable or something. I know
how to start it , but not how to capture it. Nslookup I realize can be
started interactively, which is to some degree what I may need to do as I am
discovering that there is no easy way to query DNS svr records with dotnet2.
I have seen some com objects that might but I have not looked to deeply into
this as of yet. I am thinking of using the tools that will be in place where
I plan to use my program, like nslookup, netdiag, dcdiag ...ect. Another
approach that might work, is to embed a cmd window into one of the my
frames, althought I have no idea how to do that or if it will require reams
of code to implement.
Any points, examples, guidence and suggestions would be very welcome.
Thx
or maybe better yet nslookup. I would like to launch and then capture all
the output , redirect it I guess to a string variable or something. I know
how to start it , but not how to capture it. Nslookup I realize can be
started interactively, which is to some degree what I may need to do as I am
discovering that there is no easy way to query DNS svr records with dotnet2.
I have seen some com objects that might but I have not looked to deeply into
this as of yet. I am thinking of using the tools that will be in place where
I plan to use my program, like nslookup, netdiag, dcdiag ...ect. Another
approach that might work, is to embed a cmd window into one of the my
frames, althought I have no idea how to do that or if it will require reams
of code to implement.
Any points, examples, guidence and suggestions would be very welcome.
Thx