Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C# Programming

NET View in C#

Knows somebody how to do a 'NET VIEW' with the .Net framework / ASP.NET?

Using WMI? Capturing DOS output? Or are there any useful classes?



    I don't think that you can use WMI here, as WMI is only going to give
you the domain that the current machine is a part of.  There might be a WMI
query you could execute against the domain controller for this, but I am not

    You can call the API function WNetEnumResource API function in order to
do this.

          - Nicholas Paldino [.NET/C# MVP]
          - m@spam.guard.caspershouse.com

"Eric" <E@newsgroups.nospam> wrote in message


Hi Eric,

The NET VIEW command can be simulated using API WNetOpenEnum and
WNetEnumerateResource; here's an example in C#:

#Enumerating Network Resources - The Code Project - C# Programming

Hope this helps.

Walter Wang (waw@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

This posting is provided "AS IS" with no warranties, and confers no rights.

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc