Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining the COMMENTS for all shares in a domain
Message
From
25/03/2002 05:07:06
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00635476
Message ID:
00636732
Views:
20
Thanks Larry

I will give it a try


>Mark,
>Comment out the BuildNetresource call in both the main program and the GetMoreShare function. This made it work for me. Let the program use the NetResource structure returned when it executed WNetEnumResources and copied the memory into cBuff.
>
>HTH.
>
>BTW, if yuo have a large metwork, this program will take a long time to run. It goes through it all.
>
>>Thanks Larry
>>
>>Yes I tried stepping thru the code and the for next loop is starting at 1.
>>However the code is a bit beyond me and I only have a short effort allocation on this task:(
>>
>>
>>>>Using ANETRESOUCES I can get all the machine names for a particular domain.
>>>>
>>>>However I also need to retrieve the comments.
>>>>
>>>>I have experimented with Ed's Netresources program but on my Windows 2000 based system, running the GETALLSHARE.PRG just prints the following the following and does nothing else.
>>>>
>>>>
>>>>Microsoft Windows Network Microsoft Windows Network CONTAINER ANY
>>>>
>>>>
>>>>All comments gratefully received
>>>
>>>Mark,
>>>I haven't used the GetAllShare program but this look like it stops at the top-level of the network resource hierarchy. There should be a recursive call to EnumResources so that each containership level can be processed. Has this been commented out or not impleemnted?
Previous
Reply
Map
View

Click here to load this message in the networking platform