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
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
> I'm looking for a solution to execute the DOS command "NET VIEW" in .NET
> 2.0.
[quoted text clipped - 3 lines]
>
> Thanks