WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Enumerate Hidden Shares

Keywords: 	 wntresources hidden shares

Question:

I am referring to a share name that ends with a $ I don't know how you pull the share list.

In server manager, if you click Computer, Shared Directories they show up.

Also, rmtshare.exe from the resource kit displays those shares. wntResources does not.

Answer:

You could use the command wntShareListfrom the Win32 Network Extender to get a list of hidden shares....
AddExtender("WWWNT34i.DLL")
list=wntShareList("\\SERVER", 16, 0)
AskItemList("List of hidden shares",list, @TAB, @UNSORTED, @SINGLE)
exit

OR Maybe even do something like:

	runwait("cmd.exe","/c rmtshare.exe > c:\xxx.txt")
then parse the resulting xxx.txt file
Article ID:   W13544
Filename:   Listing Hidden Shares.txt
File Created: 2001:06:22:07:46:36
Last Updated: 2001:06:22:07:46:36