|
-
August 9th, 2004, 02:27 AM
#1
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
-
August 9th, 2004, 02:47 AM
#2
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...
-
August 9th, 2004, 03:18 AM
#3
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
-
August 9th, 2004, 03:23 AM
#4
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
-
August 9th, 2004, 04:18 AM
#5
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.
-
August 9th, 2004, 05:42 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|