I'm looking for a solution to execute the DOS command "NET VIEW" in .NET 2.0.

Are there any classes in .NET or can I use WMI?
Or do I need to capture the DOS output?

Thanks

Re: How to do a "NET VIEW" command by PlatinumBay

PlatinumBay
Wed Jun 06 17:11:23 CDT 2007

Eric,

The basic idea is to use the Process object to invoke a command. You can
redirect output as well if required. You can also use Windows APIs, and the
System.Management namespace.

Check out these posts for some more detail:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1667468&SiteID=1
http://www.nikhedonia.com/notebook/entry/how-to-get-all-users-and-computers-in-a-domain-via-c/

Hope this helps,


Steve

"Eric" <EricS@newsgroups.nospam> wrote in message
news:584B44FD-9BA7-407C-850E-91A1CF7DC890@microsoft.com...
> I'm looking for a solution to execute the DOS command "NET VIEW" in .NET
> 2.0.
>
> Are there any classes in .NET or can I use WMI?
> Or do I need to capture the DOS output?
>
> Thanks