April 2004
Beginner
416 pages
11h 3m
English
The Worker information section of the ListShare.vbs script simply uses WScript.Echo to write the various properties and their associated values to the command line (if run in CScript) or to a pop-up dialog box (if run in WScript, which is not a really good idea when you have lots of shares). The most convenient listing of all the available properties for a particular class is contained in the platform SDK. A quick search for Win32_Share reveals the properties listed in Table 10-1.
Table 10-1. Win32_Share Properties
Data type | Property | Meaning |
|---|---|---|
Boolean | AllowMaximum | Allow maximum number of connections? True or False. |
string | Caption | Short, one-line description. |
string | Description | Description. |
datetime | InstallDate | When the share was created ... |