CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2003
    Location
    Mumbai, Maharashtra INDIA
    Posts
    20

    Question Visual Basic List View Control to View Network Computers

    Hi,

    I am working on simple network connect utility and ready with the functinality. But I am stuck at a very important aspect of the GUI where I need a List View Control that will view the computers from the available LAN domains. And will let us select a particular computer on expanding the domain List Item. If not a list view then a treeview rather.

    Also will this control let me select a NETWORK COMPUTER ONLY but not shared folders on its individual drives. Only computers has to be selected. Not the nodes (folders) shared at them.

    Thanks.

    Vinitsankhe.
    V.V.Sankhe

  2. #2
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    shell and use "net view /workstation" - that will give you a list of the computers (by name) on the network.
    Be nice to Harley riders...

  3. #3
    Join Date
    Oct 2003
    Location
    Mumbai, Maharashtra INDIA
    Posts
    20

    Thanks. But new query .........

    Hi,

    Thanks for ur immediate reply. This will solve my problem. But is there a CONTROL that can automatically do this? We had seen browse option in windows with this capapcity to show Network PCs. The problem with this control is it is meant to select only FILES hence it does not select Network Computers (Names).

    Thanks.

    Vinit Sankhe.

    ----------------------------------------------------------------------------------------------------
    Most of that u learn has significance only if you remember it; otherwise it's like wasting a part of your valuable life.
    V.V.Sankhe

  4. #4
    Join Date
    Oct 2003
    Location
    Mumbai, Maharashtra INDIA
    Posts
    20

    Problem Continued ............

    Sorry that I missed main problem in this solution ..........

    Shell "net view /Domain:JKNGR" shows me all computers with their names lying in domain JKNGR but ......................... How am i going to CATCH the output of Shell "net view /Domain:JKNGR".

    Shell returns only success codes but not buffered outputs.

    ??

    Vinit.
    V.V.Sankhe

  5. #5
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726
    might it be of help the SHBrowseForFolder api?
    http://vbnet.mvps.org/code/browse/browsenetwork.htm

    Or- as the above might not be configured to show machines only -
    here:

    Enumerating Servers and Machines in a Domain
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  6. #6
    Join Date
    Oct 2003
    Location
    Mumbai, Maharashtra INDIA
    Posts
    20

    Thanks the problem is solved. Just a Small Query

    Hi,

    My application is alive and running. Thanks for ur Help.

    But I need to do a small thing that when Shell ("net send ......... ") returns code (on success or failure) the codes are not consistent. They are randomized or may be having some special meaning each time. But when error occures, a blank command prompt window is activated and remains active till My application is closed. Now how to solve this problem. How to deactivate this Erroneous command prompt without closing My Application.

    Thanks

    Vinit
    V.V.Sankhe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured